-
Notifications
You must be signed in to change notification settings - Fork 7
Updating R on Linux
Louis Maddox edited this page Jun 9, 2016
·
16 revisions
NB - if on Windows, use Tal Galili's
installr(upgrade R from within R!)
sudo vim /etc/apt/sources.list- Add
deb https://mirrors.ebi.ac.uk/CRAN/bin/linux/ubuntu trusty/-
debMIRROR_URL/bin/linux/ubuntuLINUX_CODENAME/
↳MIRROR_URL:https://mirrors.ebi.ac.uk/CRAN/— via list of mirrors here
↳LINUX_CODENAME:trusty— viacat /etc/*-release
-
sudo apt-get update
-
https://mirrors.ebi.ac.uk/CRAN gave:
...switched to https://www.stats.bris.ac.uk/R/ - same there
GPG error: https://mirrors.ebi.ac.uk trusty/ Release: The following signatures were invalid: KEYEXPIRED 1445181253 KEYEXPIRED 1445181253 KEYEXPIRED 1445181253 - switched off HTTPS using http://mirrors.ebi.ac.uk/CRAN/ and problem persisted
Solution: add new key given here
- Via notes at CRAN on Secure APT via this ServerFault question
- run
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keysGPG_KEY
↳GPG_KEY: currentlyE084DAB9(June 2016, apparently changed mid-Oct '15)
↳sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get install r-base
Users who need to compile R packages from source [e.g. package maintainers, or anyone installing packages with install.packages()] should also install the r-base-dev package:
sudo apt-get install r-base-dev
* (Followed the system hint to run `sudo apt-get update` again after this step)
```sh
~ $ R
R version 3.3.0 (2016-05-03) -- "Supposedly Educational"
Upgrade complete 😎