ksd0295
ksd0295

Reputation: 1

Unable to update to latest version of R

I am trying to update to R version 3.5.3, by using the R manual. However, when I type this line:

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

I get a return of command not found.

I tried to add it to my source list as previously suggested, but this does not seem to work. I am trying to do this on a linux system

Upvotes: 0

Views: 76

Answers (1)

Phil
Phil

Reputation: 4444

Edit: Thanks @Ralf for correction (see comments)

Append the 'deb' line to your sources.list by opening a terminal and typing:

echo "deb https://cloud.r-project.org/bin/linux/ubuntu cosmic-cran35/" | sudo tee -a /etc/apt/sources.list

Install the R-CRAN GPG key to verify what you're installing:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

Update your package list and install with:

sudo apt update
sudo apt install r-base r-base-dev

Upvotes: 2

Related Questions