R 4.0 Now Available

Ubuntu binaries for R 4.0, the newest release, are now available in the usual locations, with some caveats. As with previous transitions to major releases, 4.0 binaries are have their own PPA or in their own directory on CRAN.

Launchpad PPA

If you like to use Launchpad PPAs, the R 4.0 binaries can be found at RRutter 4.0. The recommended packages built against 4.0 can also be found here.


Binaries can also be found at the CRAN website in the Ubuntu folder. This website is synced with the PPA every 12 hours, so please be patient as the files and readme are updated. To use the R 4.0 binaries, the apt entry would be “deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/”. This would add the 4.0 binaries of Bionic. Full details are available on CRAN.

Adding a new major release to CRAN Ubuntu website has many steps, so if you are using the CRAN repository any you have any issues, please let me know.

Using 4.0 with existing binaries and c2d4u

As with every recent major R release, packages built against the R 3.5/3.6 series are not compatible with R 4.0. That means packages will need to be rebuilt is you install R 4.0.

If you are using packages installed from source, Dirk Eddelbuettel has an excellent blog post on moving to 4.0.

If you use some of binary packages available in Universe or my cran2deb4ubuntu project, you will need to patient as the binaries are built. First, you should be aware that there is a new 4.0 c2d4u PPA - https://launchpad.net/~c2d4u.team/+archive/ubuntu/c2d4u4.0+. Notice the change from “marutter” to “c2d4u.team” as the PPA location. Also, the PPA is called “c2d4u4.0+”, an indication that this will be the repository that contains packages for R 4.0 and beyond until the next major release.

As of this blog post, the status of the last three long term service (LTS) releases of Ubuntu varies. For Focal (20.04), I have rebuilt all the binaries available in Universe, but not the additional packages usually found in c2d4u. For Bionic (18.04), there are around 2,800 packages available with more coming every day. After the Focal and Bionic packages are built, I will start with the Xenial (16.04) backport. I will not be supporting R 4.0 for Trusty (14.04).

Future of c2d4u for R 3.5 and R 4.0 releases

For the foreseeable future, I will be building new and updated packages from the CRAN Task Views against both R 3.5 and R 4.0. At some point, building against R 3.5 will become problematic as packages will slowly begin to require 4.0. At that point I will freeze the c2d4u for 3.5 and only support R 4.0. Please be patient with packages in c2d4u, as I am trying to build against 4.0 and update the 3.5 PPA at the same time.