Skip to content

Updating R on vulcan

nearinj edited this page Jul 9, 2019 · 3 revisions

It's that time again where we need to update R. Woohooo!!! (said no one ever)

Anyways heres some tips and commands I ran to update R from 3.5.1 to 3.6.0

First we need to take a look at the apt source list which we can do with the following command:

sudo less /etc/apt/sources.list

For R 3.6.0 we need to make sure we have the right repo in the source list which in this case was:

deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/

We next need to make sure to remove any other cran sources from the source-list (if we don't installation will start mixing packages from different sources) (WHICH IS VERY BAD!!!)

Once your sure there are no other cran sources in /etc/apt/sources.list we can go ahead and run:

sudo apt-get install r-base

This should reinstall R with the lastest version (assuming you picked the right repo source from earlier). Once this is done make sure to restart any Rstudio sessions that were running and reinstall any packages you were using!