在Ubuntu上在R 2.10中安装Rcpp [英] Installing Rcpp in R 2.10 on Ubuntu
问题描述
我试图在Ubuntu 10.04上安装Rcpp并收到此错误(这意味着它不存在):
> install.packages(Rcpp)
install.packages(Rcpp)中的警告:
参数'lib'缺少:using'/ home / vadmin / R / i486-pc-linux-gnu -labary / 2.10'
警告消息:
在getDependencies(pkgs,dependencies,available,lib)中:
软件包'Rcpp'不可用
我有一个工作的R实例,并安装了许多其他软件包。
现在我在运行
R CMD build Rcpp
时遇到此错误svn:
**构建软件包索引...错误:在vignette上运行Stangle
'/ home / vadmin / src / R / rcpp / pkg / Rcpp / inst / doc / Rcpp-modules.Rnw'
失败,消息:
的值无效'lang':cpp错误:安装软件包
索引失败
* remove'/ tmp / Rinst3041838816 / Rcpp'ERROR安装失败。
解决方案很少事情:
-
感谢您对 Rcpp : - )
-
它已在 CRAN as Rcpp 多年;如果您收到 Rcpp不可用错误,那么您正在查看一个不良的CRAN镜像,建议使用不同的
- 也拥有其 Rcpp版本的 Rcpp Debian软件包,因此您只需执行sudo apt-get install r-cran-rcpp(但可能是过时的版本)。
一般来说,Romain和我建议Rcpp的问题来到 rcpp-devel列表。
I'm trying to install Rcpp on Ubuntu 10.04 and getting this error (which implies that it doesn't exist):
> install.packages("Rcpp")
Warning in install.packages("Rcpp") :
argument 'lib' is missing: using '/home/vadmin/R/i486-pc-linux-gnu-library/2.10'
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘Rcpp’ is not available
I have a working R instance and have installed many other packages.
Edit
Now I'm getting this error when running R CMD build Rcpp
on the source code off svn:
** building package indices ... Error : running Stangle on vignette '/home/vadmin/src/R/rcpp/pkg/Rcpp/inst/doc/Rcpp-modules.Rnw' failed with message: invalid value for 'lang' : cpp ERROR: installing package indices failed * removing ‘/tmp/Rinst3041838816/Rcpp’ ERROR Installation failed.
A few things:
thanks for your interest in Rcpp :-)
it has been on CRAN as Rcpp for years; if you get a Rcpp not available error then you are looking at a bad CRAN mirror and I suggest using a different one
Ubuntu also has their Rcpp version of the Rcpp Debian package so you could just do 'sudo apt-get install r-cran-rcpp' (but that may be a dated version, alas)
In general, Romain and I suggest for Rcpp questions to come to the rcpp-devel list.
这篇关于在Ubuntu上在R 2.10中安装Rcpp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!