Installing the R Language
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the /path/to/CNVFILTER directory.
cd /path/to/CNVFILTER
- Download the R language source package.
wget https://cran.r-project.org/src/base/R-4/R-4.2.0.tar.gz
- Decompress the source package.
tar xvf R-4.2.0.tar.gz
- Go to the directory generated after the decompression.
cd R-4.2.0
- Perform the compilation and installation.
yum install libXt-devel libX11-devel readline-devel ./configure --prefix=/path/to/CNVFILTER/R_install make make install
- Load the environment variables.
export PATH=/path/to/CNVFILTER/R_install/bin:$PATH export LB_LIBRARY_PATH=/path/to/CNVFILTER/R_install/lib/R/lib:$ LB_LIBRARY_PATH
- (Optional) If the network speed is slow, run the following command to add an image source of the R language.
- Create an ~/.Rprofile file.
vi ~/.Rprofile
- Press i to enter the insert mode and add the following content:
options("repos"= c(CRAN="http://mirrors.tuna.tsinghua.edu.cn/CRAN/")) options(BioC_mirror="http://mirrors.tuna.tsinghua.edu.cn/bioconductor/") - Press Esc, type :wq!, and press Enter to save the file and exit.
- Create an ~/.Rprofile file.
Parent topic: Configuring the Compilation Environment