How to install an older version of R on CentOS

The installed version is 3.3.0.

I would like to install version 2.X, but I do not know how to do this.

+5
source share
4 answers

Are you building a tar.gz file? If so, you can download any version that you like, here is the file folder for versions 2.x:

https://cran.r-project.org/src/base/R-2/

EDIT to add:

You can try to install in the same way as in your terminal. (this should work, for example, in Debian, but please read for the OP solution in CentOS).

wget https://cran.r-project.org/src/base/R-2/R-2.15.3.tar.gz tar zxvf R-2.15.3.tar.gz; cd R-2.15.3/ ./configure; make; sudo make install 

ADDED from OP, which found CentOS solution :

Thanks @resscova answer and some research online. Here's how to install R-2.X.tar.gz on Centos:

 yum groupinstall "Development Tools" yum install ncurses-devel zlib-devel texinfo gtk+-devel gtk2-devel qt-devel tcl-devel tk-devel kernel-headers kernel-devel ./configure --with-x=no make make install 
+6
source

Thanks @resscova answer and some research online. Here is one way to install R-2.X.tar.gz on Centos:

 yum groupinstall "Development Tools" yum install ncurses-devel zlib-devel texinfo gtk+-devel gtk2-devel qt-devel tcl-devel tk-devel kernel-headers kernel-devel ./configure --with-x=no make make install 
+3
source

I installed R-3.3.3 with sources - https://cran.r-project.org/src/base/R-3/R-3.3.3.tar.gz on CENTOS 7 after the xlsx library stops working with R-3.4.1

These are the steps I took to successfully install R 3.3.3.

 wget https://cran.r-project.org/src/base/R-3/R-3.3.3.tar.gz tar xvzf R-3.3.3.tar.gz cd R-3.3.3 yum groupinstall "Development Tools" yum install ncurses-devel zlib-devel texinfo gtk+-devel gtk2-devel qt-devel tcl-devel tk-devel kernel-headers kernel-devel readline-devel ./configure --with-x=no make sudo make install 

Be sure to set readline-devel, otherwise you may need to use --with-readline = no when configuring the make file.

+1
source

R can be installed from the Fedora EPEL software repository .

Install RPM EPEL first, then set the R group:

 su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm' su -c 'yum install R' 

See also: https://cran.r-project.org/

2) Red Hat Enterprise Linux (RHEL)

CentOS

Scientific linux

Oracle Linux

====================================

Fedora RPMs for R have been ported to RHEL under the Extra Packages for Enterprise Linux (EPEL) project.

http://fedoraproject.org/wiki/EPEL

These RPMs are also compatible with distributions sourced from RHEL.

To use the EPEL repository, just download and install the appropriate "RPM release" of the RPM, as described in the EPEL FAQ:

https://fedoraproject.org/wiki/EPEL/FAQ#How_can_I_install_the_packages_from_the_EPEL_software_repository .

Then R can be installed as described in the Fedora section above.

-1
source

All Articles