Installing R-4.0 on Ubuntu 18.04 painlessly

There are some great instructions here but there are a few gotchas to be aware of. Follow these instructions first, and it will make the process a LOT easier:

1. Make sure you have these dependancies installed. If you don't, you're going to have trouble installing any R packages like R curl, tidyverse, devtools, etc

sudo apt install libssl-dev libcurl4-openssl-dev libxml2-dev

2. Remove any existing R install.

sudo apt remove r-base* --purge

3. Remove any remaining packages. It's better to install them "fresh". They will be in locations like /home/user/R/R-3.6.6 and /usr/lib/R/library/

4. Remove any existing entry for R in the etc/apt/sources.list to install an older R version.

sudo nano /etc/apt/sources.list

For example you might have something like this:

deb bionic-cran35/

5. Then follow the DigitalOcean instructions here and you should be set up in just a few minutes.


  1. This information really helped me a lot. It was very informative.
    DevOps Training
    DevOps Online Training


  2. Amazing blog! I really like the way you explained such information about this post with us. And blog is really helpful for us this website

  3. OH MY GOD! I finally get rid of freaking R 3.4 and installed 4.0. Thank you so much!!!!!!!

  4. Great work with hard work you have done I appreciate your work thanks for sharing it.
    <a href=" >R-Studio Pro Crack </a>

  5. Usually I do not read post on blogs, but I would like to say that this write-up very forced me to try and do it! Your writing style has been surprised me. Great work admin.Keep update more blog.Visit here for Product Engineering Services | Product Engineering Solutions.

  6. Wonderful content! Keep working on it! And if you have time, try checking out our website.Ashampoo Driver Updater


Post a Comment

Popular posts from this blog

Data analysis step 8: Pathway analysis with GSEA

EdgeR or DESeq2? Comparing the performance of differential expression tools