Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install previous versions of R on ubuntu [closed]

Tags:

r

ubuntu

I am wanting to use RHadoop packages(rmr, rhdfs, rhbase) on my ubuntu server. These only work with the older version of R 2.15.0 and not on the current 3.0.1 version. I have created a mirror which allowed me to install the 3.0.1 version.

sudo apt-get install r-base-dev

What do I need to change here to get the 2.15.0 version of R?

I have tried using the links but i think I might need to access a new mirror since the link to both downloads are different.

current mirror:

deb http://cran.cnr.berkeley.edu/bin/linux/ubuntu precise/

I assume its getting the most recent file and executing it:

http: //cran.cnr.berkeley.edu/bin/linux/ubuntu/precise/r-base-dev_3.0.1-5precise0_all.deb

The link I want it to follow and install

http: //cran.cnr.berkeley.edu/src/base/R-2/R-2.15.0.tar.gz

After berkeley.edu it is all different but in my mirror it would stay the same. I have tried changing my mirror but haven't had any luck.

If anyone has any suggestions or can lead me down the right path that would greatly help.

-Joey

like image 572
Joey1744 Avatar asked Jul 29 '13 22:07

Joey1744


People also ask

How do I install an older version of an R package?

Installing an older package from source If you know the URL to the package version you need to install, you can install it from source via install. packages() directed to that URL. If you don't know the URL, you can look for it in the CRAN Package Archive.

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

You will find previous binary builds for Ubuntu in the standard directory, just by hand:

 https://cran.r-project.org/bin/linux/ubuntu/

You can always download them manually and then tell the package management system to put them 'on hold', ie to not upgrade. See eg man dpkg for the dpkg --set-selection and the hold state.

like image 188
Dirk Eddelbuettel Avatar answered Oct 06 '22 09:10

Dirk Eddelbuettel


You find outdated versions of R at the CRAN page:

http://cran.r-project.org/sources.html

Following a couple of links:

http://cran.r-project.org/src/base/R-2/R-2.15.0.tar.gz

I suppose it is possible that that Debian/Ubuntu repository has the Make files to drive the compilation from source. If not, you can probably find one on the R-Debian mailing list.

like image 30
IRTFM Avatar answered Oct 06 '22 10:10

IRTFM