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 <> and from <>

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

<<Follow the instructions from <>

  • sudo gedit /etc/apt/sources.list
This will open up your sources.list file in gedit, where you can add the following line.
  • deb 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 --recv-key E084DAB9
    gpg --hkp://keyserver --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 :>>

[ Main_Page ]