Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 10445  / 3 Years ago, wed, may 26, 2021, 5:58:37

I want to install a version of R that is newer than the one in the Ubuntu repos, but older than the most current CRAN version. (How to install/upgrade r-base describes how to install the latest version and I want an older one).



I keep trying but nothing. I downloaded the .deb file but it asks me for a numerous dependencies. Does anyone know any other faster way?


More From » 14.04

 Answers
6

The solution for me was the following script to build R from source:



wget https://cran.rstudio.com/src/base/R-3/R-3.2.2.tar.gz
tar xvf R-3.2.2.tar.gz
cd R-3.2.2
sudo apt-get install gcc
sudo apt-get install fort77
sudo apt-get install aptitude
sudo aptitude install g++
sudo aptitude install xorg-dev
sudo aptitude install libreadline-dev
sudo aptitude install gfortran
gfortran --version
./configure
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
java -version
# need to build shared library (--enable-R-shlib)
sudo ./configure --enable-R-shlib # the --enable-R-shlib option is needed for the RStudio IDE to work
sudo make
sudo make install
R --version

[#14467] Friday, May 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gavgenerati

Total Points: 120
Total Questions: 126
Total Answers: 119

Location: Marshall Islands
Member since Wed, Feb 9, 2022
2 Years ago
;