I don't know where to put this line in the file. Or is there the possibility to achieve it over the shell somehow? I'm using 14.04.
INSTALLATION
To obtain the latest R packages, add an entry like
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu precise/
or
deb http://<my.favorite.cran.mirror>/bin/linux/ubuntu lucid/
in your /etc/apt/sources.list file, replacing
<my.favorite.cran.mirror>
by the actual URL of your favorite CRAN mirror. See http://cran.r-project.org/mirrors.html for the list of CRAN mirrors. To install the complete R system, use
sudo apt-get update
sudo apt-get install r-base
My mirror would be: http://stat.ethz.ch/CRAN/
sudo apt-get update && sudo apt-get install r-base