Install the Latest Version of R in Ubuntu

Posted on Feb 20, 2017 in Programming

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

sudo apt-add-repository -y "deb http://cran.rstudio.com/bin/linux/ubuntu xenial/"
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update
sudo apt-get install r-base-dev

If apt-add-repository is not install yet, you can install it with the following command.

sudo apt-get install software-properties-common