Installing R 4.2.0
Procedure
- Go to the installation directory and download the R language source package.
cd /path/to/MULTIHICCOMPARE wget https://cran.r-project.org/src/base/R-4/R-4.2.0.tar.gz
- Decompress the installation 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/MULTIHICCOMPARE/R_install make make install
- Load the environment variables.
export PATH=/path/to/MULTIHICCOMPARE/R_install/bin:$PATH export LD_LIBRARY_PATH=/path/to/MULTIHICCOMPARE/R_install/lib/R/lib:$LD_LIBRARY_PATH
- (Optional) Add a mirror source of the R language.
vim ~/.Rprofile
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/")
Parent topic: Configuring the Compilation Environment