我要评分
获取效率
正确性
完整性
易理解

Installing the R Language

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. 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
  3. Decompress the installation package.
    tar xvf R-4.2.0.tar.gz
  4. Go to the R source code directory.
    cd R-4.2.0
  5. Install the dependencies using the yum command.
    yum install libXt-devel libX11-devel readline-devel
  6. Compile and install R.
    ./configure --prefix=/path/to/bioconductor-ebcoexpress/R_install
    make
    make install
  7. 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
  8. (Optional) If the network speed is slow, add a mirror source of the R language.
    1. Open the ~/.Rprofile file.
      vim ~/.Rprofile
    2. 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/")
    3. Press Esc, type :wq!, and press Enter to save the changes and exit.