- Download the source Package
- In http://cran.r-project.org/mirrors.html, select a domestic image to download the required version, for example: http://mirror.lzu.edu.cn/CRAN/src/base/R-3/, Here I downloaded the R-3.1.3 version of the source code, about 20 m, the download will be completed soon.
- Decompression source
- Compress package I put it in the/user/local directory and run the command after entering this directory:
- Tar xzf r-3.1.3.tar.gz
- Extract to current directory
- Checking the compilation environment and compiling
- Test
>r can see the following information: Simple test ok!
R version 3.1.3 (2015-03-09)--"Smooth sidewalk"Copyright (C) the R Foundation forStatistical Computingplatform:x86_64-unknown-linux-gnu (64-bit)Software and comes with absolutely NO WARRANTY.You is welcome to redistribute it under certain conditions. Type ' license () ' or ' licence () ' for distribution details. Natural language Support but running in an 中文版 Localer is a collaborative project with many contributors. The Type ' contributors () ' for more information and ' citation () ' is on what cite R or R packages in publications. Type ' demo () ' For some demos, ' Help () ' for on-line help, or ' help.start () ' for the HTML browser interface to help. Type ' Q () ' To quit R.> x<-c (All-in-A-Z) > Y<-c (102,299,301) > Model<-lm (y~x) > Summary (model) call : LM (formula = y ~ x) residuals:1 2 3 -32.5 65.0-32.5 coefficients:estimate Std. Error t value Pr (>|t|) (Intercept) 35.00 121.60 0.288 0.822 x 99.50 56.29 1.768 0.328 residual standard error:79.61 on 1 degrees of Freedommultiple r-squared:0.7575, adjusted r-squared:0.5151 f-statistic:3.124 on 1 and 1 DF, p-value:0.3278& Gt Proc.time () user system elapsed 0.300 0.024 97.456;
R in Linux redhat 6.5 compilation and installation process