Install the last version of R on debian derivates linux distros

This should work for Debian, Ubuntu, LinuxMint.

1. Add the sources of CRAN repos:

$ sudo echo "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/" | sudo tee -a /etc/apt/sources.list

2. Add the kerying:

gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
gpg -a --export E084DAB9 | sudo apt-key add -

3. Install R

sudo apt-get update
sudo apt-get install r-base r-base-dev
Anuncios