Installing the R Language
Procedure
- Download the R language installation package and decompress it.
cd /path/to/R wget https://cran.r-project.org/src/base/R-4/R-4.1.2.tar.gz --no-check-certificate mkdir src_R_4.1.2 tar zxvf R-4.1.2.tar.gz -C ./src_R_4.1.2 --strip-components 1 cd src_R_4.1.2
- Compile and install R.
./configure --prefix=/path/to/R CC=`which gcc` CXX=`which g++` FC=`which gfortran` make -j make install
- Add R to the environment variables.
export PATH=/path/to/R/bin:$PATH
- Perform the verification.
R --version
Parent topic: Configuring the Compilation Environment