This guide is intended to faciliate the installation of up-to-date R packages
for users new to either R or Linux. Unlike Windows binaries or Mac packages,
Linux software is often distributed as source-code and then compiled by package
maintainers. The use of package managers has many advantages that I won’t
discuss here (see Wikipedia).
More importantly, the difference can be initially intimidating.
However, once the user gets used to using package managers such as
apt or
yum to install software,
I’m confident they’ll appreciate their ease of use.
These instructions are organized by system type.
Debian-based Distributions
Ubuntu
Full installation instructions for Ubuntu can be found
here. Luckily, CRAN mirrors have
compiled binaries of R which can be installed using the apt-get package manager.
To accomplish this, we’ll first add the CRAN
repo for Ubuntu packages to
/etc/apt/sources.list. If you prefer to manually edit the sources.list file,
you can do so by issuing the following in the terminal:
1
| |
1 2 3 4 5 6 7 8 9 10 11 | |