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 are unavailable for the R version I have, and that the shall be installed on the R 3.1.2 version. 've been trying to upgrade R from all the possible means but I haven't had a sucessful result. Is anyone experiencing the same problem?
-
2Please read the [corresponding README.html on the CRAN "debian" directory](http://cran.rstudio.com/bin/linux/debian/) which has everything you need to know. – Dirk Eddelbuettel Feb 09 '15 at 15:49
4 Answers
Follow the instructions posted here: How to upgrade R in ubuntu?
Note that Linux Mint 17.1 relies upon the Ubuntu Trusty package base, so you will need to use trusty/
as the Ubuntu version. Also, make sure to use the command sudo apt-get upgrade r-base
at the end of the procedure, not just sudo apt-get upgrade
, otherwise R won't be upgraded.
Your question may be considered off-topic, but it can be helpful to other Mint users.
-
How do you know that Linux Mint 17.1 relies on the trusty package base? How can I check this for my version? – Parsa Mar 07 '16 at 16:27
-
1This approach will not give you the latest version, just the latest version in the repository. For example (as of this writing) it thinks 3.2.2 is the latest, but 3.2.4 was just released. – MichaelChirico Mar 14 '16 at 14:59
Hope this will help, your question helped me alot... Note that Linux mint is based on ubuntu trusty...
sudo su
echo "deb http://www.stats.bris.ac.uk/R/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9}
sudo apt-get upgrade r-base
apt-get update
apt-get upgrade

- 33,841
- 14
- 113
- 198

- 801
- 1
- 9
- 28
I can't figure out how to install properly from the tar.gz
file linked from the main R page. I download it, I run ./configure
make
, and it installs to my Downloads folder. Couldn't figure out how to install it properly elsewhere (must be easy, but I'm green on these things -- advice appreciated), and RStudio, e.g., doesn't know to look in my Downloads folder for the current version (also probably not the most robust approach).
Instead, I was able to grab the last r-base-dev
.deb
file from trusty
here/xenial
here, which handles installation automatically.
R versions 3.5+ have changed directories:

- 33,841
- 14
- 113
- 198
Version specific installation using source code is much different than the installation using YUM or APT. It depends on OS version and the number of dependencies that need to be met for the installation to complete successfully. I have documented the installation of R 3.3.3 on SLES11 SP3 in http://hashprompt.blogspot.com/2017/06/installation-of-r-on-suse-linux.html Hope that it might help you install on linux systems.

- 351
- 1
- 8