Friday, December 30, 2016

[Level 1] Install R in Ubuntu

Here are the steps to install R on Ubuntu 16.04
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
$ sudo add-apt-repository 'deb [arch=amd64,i386] https://cran.rstudio.com/bin/linux/ubuntu xenial/'
$ sudo apt-get update
$ sudo apt-get -y install r-base r-base-core
$ sudo -i R ## test R
Here are the steps to instal R packages from CRAN
$ sudo -i R
> install.packages('__package_name__')

Wish this helps.

regards,
Stanley Huang