I am new to Linux. I am using Linux mint 18.1. I have installed R using system software manager. My current R version is 3.2. But I want to upgrade it to version 3.4.
How can I do it?
I am new to Linux. I am using Linux mint 18.1. I have installed R using system software manager. My current R version is 3.2. But I want to upgrade it to version 3.4.
How can I do it?
The link provided by FedRo is a good resource, however a slight change would need to be made since you're using Linux Mint 18.1 which uses Xenial repositories rather than Trusty repositories (see here). I also typically use the approach here to deal with packages I've already installed when I upgrade R rather than the approach offered by FedRo. So, for completeness, these are all the steps you'd need to take:
Step 1
Go to CRAN's list of mirrors and find the URL of the mirror that is closest to you. The terminal commands below assume you choose http://cran.wustl.edu/
Step 2
Open a terminal and enter the following commands (replacing http://cran.wustl.edu/ with whichever CRAN mirror URL you chose in step 1):
Note also that I have put to upgrade
r-base
andr-base-dev
, but I don't know if you haver-base-dev
installed. If not, I highly recommend you install it viasudo apt install r-base-dev
.Step 3
Start a new R session and run the following:
Then you should be good to go.
Update: Linux Mint 19 and R 3.5.x
Since both Linux Mint and R have seen upgrades since I answered this question, I'm updating for those who come to this answer needing the info for Linux Mint 19 and R 3.5.x.
The only difference is that instead of the command
you need to use
(replacing http://cran.wustl.edu/ with whichever CRAN mirror URL you chose in step 1)