Rate This Document
Findability
Accuracy
Completeness
Readability

Installing R 4.2.0

Procedure

  1. Download the R language source package.
    cd /path/to/Appreci8r
    wget https://cran.r-project.org/src/base/R-4/R-4.2.0.tar.gz
  2. Decompress the package and perform the installation.
    tar xvf R-4.2.0.tar.gz
    cd R-4.2.0
    yum install libXt-devel libX11-devel readline-devel
    ./configure --prefix=/path/to/Appreci8r/R_install
    make
    make install
  3. Load the environment variables.
    export PATH=/path/to/Appreci8r/R_install/bin:$PATH
    export LB_LIBRARY_PATH=/path/to/APPRECI8R/R_install/lib/R/lib:$ LB_LIBRARY_PATH
  4. (Optional) Add an R language mirror source if needed.
    vim ~/.Rprofile
  5. Add the following content to the file:
    options("repos"= c(CRAN="http://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
    options(BioC_mirror="http://mirrors.tuna.tsinghua.edu.cn/bioconductor/")