Rate This Document
Findability
Accuracy
Completeness
Readability

Installing R

Procedure

  1. Run the following command to install dependencies:
    yum install readline-devel libXt-devel libcurl-devel pcre-devel bzip2-devel -y
  2. Run the following command to decompress the R installation package:
    tar zxvf R-3.3.1.tar.gz
  3. Run the following command to go to the directory generated after the decompression:
    cd R-3.3.1
  4. Run the following command to perform the configuration:
    ./configure --prefix=/path/to/R
  5. Run the following commands to perform the compilation:
    make
    make install
  6. Run the following command to set the environment variable:
    export PATH=/path/to/R/bin:$PATH
  7. Run the following command to check whether R is successfully installed:
    R

    If information similar to the following is displayed, the installation is successful: