Getting the latest version of R with Linux Mint
NickName:Addem Ask DateTime:2018-07-19T12:34:26

Getting the latest version of R with Linux Mint

When I run apt install r-base it provides me with a slightly out-dated version of R. When I tried to look up how to get a newer version, much of what I found did something to the file /etc/apt/source.list. The content of this file is

#deb cdrom:[Linux Mint 18.3 _Sylvia_ - Release amd64 20171124]/ xenial contrib $

Most instructions suggest appending something like

deb http://cran.rstudio.com/bin/linux/debian wheezy-cran3/

But none of the various suggestions I've read have worked--presumably either because they were for non-Mint distros or they were for outdated versions of Mint. I tried taking something that I found, like

http://cran.ma.imperial.ac.uk/bin/linux/ubuntu trusty/

and editing it with the codename that I found elsewhere which seems to be the most recent, hence making it

http://cran.ma.imperial.ac.uk/bin/linux/ubuntu sylvia/

But when I ran the update it couldn't find the repo, presumably because places that have Trusty don't necessarily have Sylvia--although maybe it didn't work for some other reason. (And I notice the UK address which probably is bad for me to be using in America, but I don't really get how I'm supposed to find an address that will have the right files.)

Since I see a number of times when this question has been asked and solutions always seem to be short-lived, applying only so long as that particular version is hosted by that particular address and is the latest version--can I ask something where the answer might have a little more longevity: In general, how do you find the right thing to add to your /etc/apt/source.list file to make this work? How do you find the right repo source (same thing as a mirror?), the current codename, and so on? (It would also be nice to have a generalized procedure for how to solve this, because I basically ran into the same problem on my old computer with a 32-bit architecture, and would like to have R running on that too without having to ask the question a second time--but presumably the specific thing and place I'll have to download for that is different.)

Copyright Notice:Content Author:「Addem」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/51414409/getting-the-latest-version-of-r-with-linux-mint

More about “Getting the latest version of R with Linux Mint” related questions

Getting the latest version of R with Linux Mint

When I run apt install r-base it provides me with a slightly out-dated version of R. When I tried to look up how to get a newer version, much of what I found did something to the file /etc/apt/sou...

Show Detail

Nodejs latest version on Linux Mint

http://sideshowcoder.github.io/canned/ - requires me to have nodejs version 0.10.3 I have Linux Mint 17 which runs 0.10.25. Is the latest version of nodejs not available on Linux Mint?

Show Detail

Linux Mint: How to download the latest version of Emacs?

Linux Mint 18.1 (64 bit). I install Emacs by Software Manager. It download Emacs version 24.5. But the latest version is 25.1. How I can download the latest version?

Show Detail

Upgrading R from 3.4.4 to latest version on linux mint 19

I know there are a whole bunch of posts related to upgrading R on linux mint but none of those posts have worked for me. I have followed the instructions from this github page: "https://github.com/

Show Detail

install latest version of R 3.2.1 (World-Famous Astronaut) on Linux Mint 17.1 (MATE)

I just switched from Mac to Linux, so while I have a basic understanding of Linux structure, there are still some things Im trying to clear up. This is one of them. I have tried multiple ways (

Show Detail

How to install R 3.1.2 on Linux Mint 17.1

I have installed the latest version of Linux Mint (17.1) in my computer. I installed R version 3.0.2. However, when I try to install the package xslsx, or dplyr, the system says that these packages...

Show Detail

Linux Mint 18.1. How download latest Gradle version?

Linux Mint 18.1. When I go to Software Manager I found Gradle ver. 2.10. 1 enter image description here But it's old version. Current version of Gradle is 4.0. How I can download latest version of

Show Detail

Upgrading R on linux mint

I am trying to upgrade R 3.2.3-4 on Linux mint to at least version 3.4.4 (or any available there after). Sadly, I'm struggling, and all Google efforts have failed. I have repeated the same process

Show Detail

How to upgrade drush version in linux mint?

In NAME="Linux Mint" VERSION="18.1 (Serena)" sudo apt-get install drush to install the drush in my system. when I use drush version I still getting version 5.10.0 Even

Show Detail

Running R with Linux Mint

I recently obtained a laptop computer running Linux Mint 17. I have never previously used a computer that ran Linux (except when submitting R files to a cluster). I would like to install R on the

Show Detail