0

I have a Ubuntu 22.04 system.

I used advice from here to install version of R 4.0.0 but I always get 4.2.1 the newest one.

Problem installing R 4.0 on Ubuntu 18.04

One thing I changed is "bionic" to "jammy" since I have 22.04 instead of 18.04 of Ubuntu so the command adding the repo looks like this

sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/'

I used the following command after

sudo apt-get update
sudo apt install r-base

I run the "R" command in the terminal and see that there is 4.2.1 version installed.

David
  • 2,105
  • 13
  • 15
  • 25
Anton
  • 1
  • 1
  • 1
    If you need to run a very specific version of any software, the simplest method is to [use Docker](https://hub.docker.com/layers/rocker/r-ver/4.0/images/sha256-293d2de3e88d0a985ca4c869afa5fc177962763514487aa5e66a5d903aca8067?context=explore). This will ensure you always have the specific version you need, and that any `apt update` you run on the base OS does not upgrade the version of R that you need. – matigo Oct 14 '22 at 04:28

0 Answers0