Install-upgrade R under linux Mint

From BITS wiki
Jump to: navigation, search

Applies to BITS training computers

[ Main_Page ]

Information found here is reproduced from <http://stackoverflow.com/questions/10476713/how-to-upgrade-r-in-ubuntu> and from <http://cran.cnr.berkeley.edu/bin/linux/ubuntu/#secure-apt>

Technical.png Linux Mint 17.x is related to ubuntu 'trusty'

<<Follow the instructions from <http://cran.cnr.berkeley.edu/bin/linux/ubuntu/>

  • sudo gedit /etc/apt/sources.list
This will open up your sources.list file in gedit, where you can add the following line.
  • deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ version/
  • deb http://<favourite-cran-mirror>/bin/linux/debian jessie-cran3/ #(might also be added to support R3.3)
Replace version/ with whatever version of Ubuntu you are using (eg, precise/, oneric/, trusty/ and so on).
If you're getting a "Malformed line error", check to see if you have a space between /ubuntu/ and version/.
  • Fetch the secure APT key with
    gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
    or
    gpg --hkp://keyserver keyserver.ubuntu.com:80 --recv-key E084DAB9
  • Feed it to
    apt-key with gpg -a --export E084DAB9 | sudo apt-key add -
  • Update your sources and upgrade your installation with
    sudo apt-get update && sudo apt-get upgrade

Since R is already installed, you should be able to upgrade it with this method.

Note that you don't have to necessarily use the Berkeley mirror. You may get a list of all mirrors here : http://cran.r-project.org/mirrors.html>>


[ Main_Page ]