How to Install R 3.1.2 on Linux Mint 17.1

Can't install R packages on Linux Mint 17

Per the error message

 /bin/bash: g++: command not found

you need to install a C++ compiler. I would start with one of these:

 sudo apt-get install build-essentials        # key tools

or

 sudo apt-get install r-base-dev              # many development tools for R

or of course

 sudo apt-get install r-cran-rcpp             # to not install from source

though the Rcpp you get may be older than the one you need.

There is a list r-sig-debian for users of Debian-based systems.

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

Ok, I figured it out. Thanks for all the help! I will post an answer here for anyone else trying to figure this out:

First I ran:

sudo gedit /etc/apt/sources.list

to get into my sources.list. To that I added:

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

and then added the key: (thanks Dirk for the suggestion):

sudo apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480

sudo apt-get update

then when I ran:

apt-cache showpkg r-base-dev

to see the available packages. The top one was:

Package: r-base-dev
Versions:
3.2.1-1~wheezycran3.0(/var/lib/apt/lists/cran.rstudio.com_bin_linux_debian_wheezy-cran3_Packages)

so, finally I ran:

sudo apt-get install -f r-base=3.2.1-1~wheezycran3.0

which worked great!

rpy2 installation error (OS: linux mint 17 | R 3.1.2 | python 2.7.6)

You need the headers for the readline library:

apt-get install libreadline-dev

Unable to download packages from R 3.2.2 in Linux Mint 17.1

The mirror you chose is a https mirror. You need to have setup a secure connection in order to use https mirrors.

Select 18 (HTTP mirrors) and you will see a list of additional mirrors. Pick one of those

Alternatively; you can use chooseCRANmirror():

> chooseCRANmirror()
HTTPS CRAN mirror

1: 0-Cloud [https] 2: Austria [https]
3: Chile [https] 4: China (Beijing 4) [https]
5: Colombia (Cali) [https] 6: France (Lyon 2) [https]
7: Germany (Münster) [https] 8: Iceland [https]
9: Russia (Moscow) [https] 10: Spain (A Coruña) [https]
11: Switzerland [https] 12: UK (Bristol) [https]
13: UK (Cambridge) [https] 14: USA (CA 1) [https]
15: USA (KS) [https] 16: USA (MI 1) [https]
17: USA (TN) [https] 18: USA (TX) [https]
19: USA (WA) [https] 20: (HTTP mirrors)


Selection: 20
HTTP CRAN mirror

1: 0-Cloud 2: Algeria
3: Argentina (La Plata) 4: Australia (Canberra)
5: Australia (Melbourne) 6: Austria
7: Belgium (Antwerp) 8: Belgium (Ghent)
-------------------------------------------------------------
87: USA (MI 1) 88: USA (MI 2)
89: USA (MO) 90: USA (NC)
91: USA (OH 1) 92: USA (OH 2)
93: USA (OR) 94: USA (PA 1)
95: USA (PA 2) 96: USA (TN)
97: USA (TX) 98: USA (WA)
99: Venezuela 100: Vietnam


Selection: 56
>

How do I upgrade R 3.1.2 to 3.2 through R studio?

Please read the excellent README for Ubuntu at CRAN and follow the steps outlined therein.

You have to do this at the command-line, ie in a terminal -- NOT in RStudio.

We support all this on a dedicated mailing list r-sig-debian which you can also peruse via gmane.

R 3.5 is not available for linux


Do you know the reason why the latest R is not available for Linux?

Because we are volunteers.

Moreover, R 3.5 breaks the binaries of R 3.4.* and older so we have to rebuild everything first. That is work in progress (for what is mirrored at CRAN).

For Debian proper, I of course uploaded the new packages the morning of the release (as you can see in the ChangeLog) but we are now in a so-called transition where all packages need to be rebuild (which you can monitor via this tracker).

I am thinking of making interim packages available somewhere else. But I would have to find the time to build them first too.

Edit: I expanded a little in this r-sig-debian mailing list post.

Edit 2: Please see the update status described here (and same text here).

How to upgrade Rstudio on Linux Mint?

On Linux Mint 17.3, I personally just use the link from the RStudio website whenever I want to update:

https://www.rstudio.com/products/rstudio/download/

I use the .deb link for Ubuntu/64 bit (Mint is built over Ubuntu).

The commands you are trying to run suggest you're trying to upgrade R, not RStudio (an IDE for programming in R)...

For upgrading R itself, I follow my own answer here, which is basically to grab a .deb file for R from the RStudio website here.



Related Topics



Leave a reply



Submit