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