Monday, August 26, 2013

Installing R and R Studio on Ubuntu 13.04 "Raring Ringtail"


Using the mirror at UCLA:

sudo add-apt-repository "deb http://cran.stat.ucla.edu/bin/linux/ubuntu raring/"


Installing the gpg key for R packages

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

sudo apt-get update

Installing R and the libjpeg62 library needed by R Studio


sudo apt-get install r-base libjpeg62

Getting the pre-built deb package and installing it:

wget http://download1.rstudio.org/rstudio-0.97.551-i386.deb
sudo dpkg -i rstudio-0.97.551-i386.deb