2014-05-06 87 views
1

這裏是我得到的消息,我找不到將R更新到3.0.0的地方,資源會有所幫助。我在網上搜索了一個對這個確切問題有明確答案的人。當使用Shiny時,Package rcpp不適用於(R版本2.15.2)

R version 2.15.2 (2012-10-26) -- "Trick or Treat" 
Copyright (C) 2012 The R Foundation for Statistical Computin 
ISBN 3-900051-07-0 
Platform: x86_64-redhat-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. 
install.packages('Rcpp', repos='http://cran.rstudio.com/') 
# Installing package(s) into ‘/usr/lib64/R/library’ 
# (as ‘lib’ is unspecified) 
# Warning message: 
# package ‘Rcpp’ is not available (for R version 2.15.2) 
+1

R區分大小寫 – Dason

+0

可以從[網站](http://www.r-project.org/)下載R的新版本嗎? –

+2

您需要更新R或安裝較早版本的Rcpp軟件包(可從http:// cran.rstudio.com/src/contrib/Archive/Rcpp獲得)最新版本需要R 3.0.0 – MrFlick

回答

1

我相信你需要Rcpp,注意大小寫。檢查CRAN page for Rcpp,看來Rcpp現在需要R 3.0.0或更高版本。我在CentOS上有3.0.2,但不幸的是不記得我是如何更新的。

+0

The錯誤返回實際上它有小寫包'rcpp'不可用(對於R版本2.15.2) –

+0

是的,因爲沒有'rcpp'包,但有一個'Rcpp'包。 – jaradniemi

+0

相同的錯誤訊息 –