| Name | Last modified | Size | Description | |
|---|---|---|---|---|
| Parent Directory | - | |||
| README | 06-May-2008 14:45 | 5.0K | ||
| README.html | 06-May-2008 14:46 | 6.1K | ||
| TODO | 05-May-2008 21:18 | 57 | ||
| etch-cran/ | 07-May-2008 18:48 | - | ||
| sarge/ | 07-May-2008 19:16 | - | ||
R packages for the base system have been part of the Debian distribution since 1997. R, as well as many add-on packages (from CRAN and others repositories) are available via the regular Debian distribution mechanisms. Hence, running
apt-cache search ^r-.*
should get you started with a list of available packages. Note that after an R release Debian packages for "unstable" are usually available withing a few days, but it may take from ten days to a few weeks before they get included in "testing". It can take even longer when testing is "frozen" before becoming the new stable distribution. In the meantime, they can usually be installed on a "testing" system via the 'apt-pinning' feature; see the documentation in the 'apt-howto' package for details.
After a release of Debian "stable", no new packages get added by Debian to keep the release as 'stable' as possible. This implies that the R release contained in the official Debian release will become outdated as time passes. As a courtesy to the R users on the Debian "stable" platforms, the "stable" directory on CRAN contains so-called 'backports' of the current R binaries for the "stable" distribution of Debian. Simply add something like
deb http://<favorite-cran-mirror>/bin/linux/debian etch-cran/
to the file /etc/apt/sources.list on your computer and install as usual. We currently provide inaries for the i386 and amd64 architectures. You can use the source packages from
deb-src http://<favorite-cran-mirror>/bin/linux/debian etch-cran/
to compile binaries for other platforms. We provide binaries for the latest stable R version, the set of recommended packages, as well as the scripting and command-line frontend littler, the KDE GUI rkward and the python interface python-rpy.
In addition we currently provide R 2.4.1 packages for the "oldstable" distribution of Debian (sarge) in the oldstable directory. The sources line for this looks like
deb http://<favorite-cran-mirror>/bin/linux/debian sarge/
A backport of R 2.4.0 to the even older distribution before oldstable (woody) is available via the repository of Christian Steigies
deb http://people.debian.org/~cts/R/debian woody/
The Debian backports archives on CRAN are signed with the key of "Johannes Ranke (CRAN Debian archive) <jranke@uni-bremen.de>" with key ID 381BA480. You can fetch this with
gpg --keyserver subkeys.pgp.net --recv-key 381BA480
If this doesn't work, it might be due to a firewall blocking port 11371. If you cannot or don't want to change that, you can search for the key at http://keyserver.noreply.org/ and copy it into a plain text file, named, for instance, jranke_cran.asc.
If receiving the key with gpg did work, you can also export it to a text file
gpg -a --export 381BA480 > jranke_cran.asc
and then, as root, make it known to apt-key by
apt-key add jranke_cran.asc
The recommended policy for installing and maintaining R on Debian Linux is as follows:
A standard R installation is provided by Debian's r-base package. Hence,
apt-get install r-base
installs the complete set of packages derived from the principal R sources provided by the R Core team.
Users can opt to select only a subset of these packages by installing them individually (e.g. by omitting some of the extra documentation packages, or only parts of the r-recommended bundle).
All packages (in the R sense) derived from the main R sources install into the directory /usr/lib/R/library and can be updated using apt-get (as root, or via sudo).
Other Debian packages (e.g., r-cran-*) can be installed and updated using apt-get (as root); Debian's R package will install them to /usr/lib/R/site-library.
The command
apt-cache rdepends r-base-core
shows all packages that depend on r-base-core; this comprises a large number of contributed packages from CRAN and other repositories.
If you want to install R packages not provided as Debian packages, or if you want to use newer versions, you need to get the development package
apt-get install r-base-dev
first, which makes sure that you have the basic requirements for compiling R packages. R packages may be installed by the local user/admin from the CRAN source packages, typically from inside R using the
> install.packages()
function, into /usr/local/lib/R/site-library/. This depends on local policy and setting of proper write permissions on /usr/local/lib/R/site-library/ to permit users to install and update R packages. A routine update can then be undertaken from R using
> update.packages(lib.loc="/usr/local/lib/R/site-library")
Individual users can always install R packages into their home directory. The simplest procedure is to create a file ~/.Renviron containing, e.g.,
R_LIBS="~/lib/R/library:${R_LIBS}"
The install.packages() and update.packages() will then work in the directory ~/lib/R/library.
The Debian R packages are maintained by Dirk Eddelbuettel and Doug Bates. The backports for Debian stable are provided by Johannes Ranke.