R 3.5.0 installation packages for Ubuntu Xenial (16.04) do not yet exist on the ubuntu mirror sites. Is there an alternative method for updating R to 3.5.0 on ubuntu xenial? Alternatively, is there a different method to update R to 3.5.0?
R 3.5 are currently only available from a PPA, because some of CRAN's packages have problems building with R 3.5.
Proceed at your own risk.
The procedure that worked for me is:
r-cran-*packages from your system (YMMV, I'm usually installing packages from source and have very few of these)
- Search with
dpkg -l | grep r-cran-
- Search with
Add Michael Rutter's PPA:
sudo add-apt-repository ppa:marutter/rrutter3.5 sudo apt-get update
sudo apt install r-api-3.5
Install all packages you need from source (to a personal or site library via
install.packages()) or by installing the corresponding
I use the following script to reinstall all packages my packages from my personal site library for R 3.4:
installed <- rownames(installed.packages()) pkgs <- dir("~/R/x86_64-pc-linux-gnu-library/3.4") new <- setdiff(pkgs, installed) new install.packages(new)
If you have a machine with multiple CPUs, you can speed up the process, for example:
install.packages(new, Ncpus = 6)
The CRAN site has been updated since's @krlmlr's response in early June: https://cran.r-project.org/bin/linux/ubuntu/.
The CRAN instructions have several steps, but the summary is that the
sources.list file should reference a repository that's specific to version 3.5. The entry is something like
deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/
instead of the previous (versionless) entry of
deb https://cloud.r-project.org/bin/linux/ubuntu xenial/
The relevant description from the website (which will eventually change):
As of June 11, 2018 the supported releases are Xenial Xerus (16.04; LTS), Trusty Tahr (14.04; LTS), and Bionic Beaver (18.04;LTS). Note, to install R 3.5 packages, a different sources.list entry is needed. See below for details.