Installing the R Language
Procedure
- Use PuTTY to log in to the server as the root user.
- Download the R language source package.
cd /path/to/bioconductor-ebcoexpress wget https://cran.r-project.org/src/base/R-4/R-4.2.0.tar.gz
- Decompress the installation package.
tar xvf R-4.2.0.tar.gz
- Go to the R source code directory.
cd R-4.2.0
- Install the dependencies using the yum command.
yum install libXt-devel libX11-devel readline-devel
- Compile and install R.
./configure --prefix=/path/to/bioconductor-ebcoexpress/R_install make make install
- Load the environment variables.
export PATH=/path/to/bioconductor-ebcoexpress/R_install/bin:$PATH export LD_LIBRARY_PATH=/path/to/bioconductor-ebcoexpress/R_install/lib/R/library:$LD_LIBRARY_PATH
- (Optional) If the network speed is slow, add a mirror source of the R language.
- Open the ~/.Rprofile file.
vim ~/.Rprofile
- Press i to enter the insert mode and 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/") - Press Esc, type :wq!, and press Enter to save the changes and exit.
- Open the ~/.Rprofile file.
Parent topic: Configuring the Compilation Environment