Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 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?

like image 903
Antonio P Avatar asked Feb 09 '15 15:02

Antonio P


People also ask

How do I download and install R in Linux?

Step 1: Open Ubuntu Software Center. Step 2: Search for r-base. Step 3: Click install.

Does Linux support R?

GNU R can be run on the Linux operating system in a number of ways. In this article we will describe running R from the command line, in an application window, in a batch mode and from a bash script. You will see that these various options for running R in Linux will suit a specific task.

How do I change R version in Ubuntu?

To change the current version of R. Framework, you can either: Run the installer from CRAN for the R version you want to be current. Use the RSwitch utility available at: https://rud.is/rswitch/


2 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.

like image 62
Anton P. Avatar answered Oct 14 '22 22:10

Anton P.


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
like image 5
Hammao Avatar answered Oct 14 '22 20:10

Hammao