Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the R Language

Procedure

  1. 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
  2. Compile and install R.
    ./configure --prefix=/path/to/R CC=`which gcc` CXX=`which g++` FC=`which gfortran`
    make -j
    make install
  3. Add R to the environment variables.
    export PATH=/path/to/R/bin:$PATH
  4. Perform the verification.
    R --version