General information

Packages for the base R system have been part of the Debian distribution since 1997 , thanks to Douglas Bates, and are diligently maintained by Dirk Eddelbuettel since 2001. R, as well as many add-on packages (from CRAN and other repositories) are available via the regular Debian distribution mechanisms. Hence, running

R and many R packages from CRAN and the Bioconductor project are usually available in the official Debian sid repositories . During the so-called freeze period before new releases, the latest versions of R and some of these extension packages may only be available in experimental .

For the other distributions (testing during the freeze, stable, and older releases), backports of the latest R version and some related packages are provided here.

Installation

With an appropriate entry in /etc/apt/sources.list (see below for Debian branches other than sid/unstable or experimental), the newest R release including recommended packages can be installed using a command sequence like

section on secure apt for getting the key for secure retrieval of the packages.

You only need r-base-dev if you want to compile R packages yourself or other software depending on R (see section below on administration and maintenance). Be aware that you may also have to install build dependencies (typically -dev packages containing headers). The list r-sig-debian is a good place to ask if you run into problems.

Administration and Maintenance

The R packages part of r-base and r-recommended are installed into the directory /usr/lib/R/library . The other R packages available as precompiled Debian packages r-cran-* and r-bioc-* are installed into /usr/lib/R/site-library .

These can be updated using usual Debian package maintenance tools like apt or aptitude.

The command

r-sig-debian if you would like to change this), the R versions in released or frozen Debian releases get out of date. Therefore, updates of a subset of these R related packages are provided here for such Debian releases.

Supported packages

The packages recommended by the R core team ( r-recommended ) are updated in the Debian repositories on CRAN upon each new release of R (at least for the main architectures amd64 and i386). These packages are:

r-cran-boot
r-cran-class
r-cran-cluster
r-cran-codetools
r-cran-foreign
r-cran-kernsmooth
r-cran-lattice
r-cran-mass
r-cran-matrix
r-cran-mgcv
r-cran-nlme
r-cran-nnet
r-cran-rpart
r-cran-spatial
r-cran-survival

Backports of the following packages are also supplied and kept up to date in the same manner:

littler
rkward

Any help is welcome in case you would like to see additional packages here.

Secure apt

The key ID used to sign current Debian package repositories on CRAN has ID 0xB8F25A8A73EACF41 , key fingerprint 95C0FAF38DB3CCAD0C080A7BDC78B2DDEABC47B7 and user ID Johannes Ranke <johannes.ranke@jrwb.de> .

You can fetch the key from the keyserver run by the Ubuntu project:

blog . After I did that, I ran the update command again and it took another six minutes until it successfully completed.

If you have Bioconductor packages installed as well, you need to switch to the current version using the commands listed here .

A backport of R 3.6.3 to buster is also available, which does not require reinstalling extension packages.

this bug ).

For other architectures and releases, you can use the source packages from one of these repositories

r-sig-debian mailing list. See

https://stat.ethz.ch/mailman/listinfo/r-sig-debian

for more information.

Backporting Debian packages for CRAN

Anyone interested in building Debian packages (e.g. for an unsupported release, another architecture or an old R version) can have a look at the build scripts used by the current maintainer. These can be inspected at

http://cgit.jrwb.de/r-backports

or cloned from the git repository

https://developer.r-project.org/SVNtips.html . I have not used this a lot and I assume you have some experience in building software on unix systems. No warranties, your mileage may vary.

First, make sure you have a source repository in your /etc/apt/sources/list , like

development guidelines .

We can build such branches (aka R-patched) using the following scheme, which is adapted from the procedure given for R-devel, but without duplicating all comments.

At the time of this writing, the release branch can be defined by

posted to debian-devel in 2003 .

Contributions

This document is maintained by Johannes Ranke . The Debian R packages are maintained by Dirk Eddelbuettel. The backported packages present on CRAN are provided by Johannes Ranke. Thanks to Mathieu Basille for restructuring the README in March 2015.