Install R language under Linux
First, compile and install
As a result of compiling the installation, it is necessary to use the gcc compilation environment, in the pre-compilation check file will also use the libxt-devel and Readline-devel Two dependencies, so when compiling the R Language source code, these tools and dependencies are ready first. readline-devel can also not install, do not install this package in the R language programming environment, the auto-completion function is obsolete.
Note: You can use yum to install more easily.
1. Installation Environment:
Centos 6.5
2. Installation steps:
(1) Open a Command line window and enter a directory
wget http://ftp.ctex.org/mirrors/CRAN/src/base/R-2/R-2.13.1.tar.gz ( recommended download link, many of the old posts on the web link has expired, can also be accessed through the browser R language website Download Linux version of the source code compression package ).
Note: Since many of the mirrors are foreign sources, there are times when FQ is required and it is recommended to use the Siego recommended flagship VPN tool for FQ.
(2) Use the command TAR-ZXVF r-2.13.1.tar.gz decompression.
(3) CD R-2.13.1 into the catalogue.
(4)./configure This will check the file.
(5) Make ( This step takes a longer time )
(6) Make install
After compiling the installation, it will automatically enter the R Language programming environment, you can use install.packages ("xxx") and library (XXX) to load the required packages.
Exit command is Q ()
CentOS installation and Configuration R language