标签:
checking for g++... no
checking for c++... no
configure: error: No F77 compiler found
...会有一大堆不满足的条件
安装对应的依赖即可
R version 3.1.3 (2015-03-09) -- "Smooth Sidewalk"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type ‘license()‘ or ‘licence()‘ for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type ‘contributors()‘ for more information and
‘citation()‘ on how to cite R or R packages in publications.
Type ‘demo()‘ for some demos, ‘help()‘ for on-line help, or
‘help.start()‘ for an HTML browser interface to help.
Type ‘q()‘ to quit R.
> x<-c(1,2,3)
> 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 freedom
Multiple R-squared: 0.7575, Adjusted R-squared: 0.5151
F-statistic: 3.124 on 1 and 1 DF, p-value: 0.3278
> proc.time()
user system elapsed
0.300 0.024 97.456
>
标签:
原文地址:http://www.cnblogs.com/coffeeplayer/p/4431448.html