[英]Installing Rcpp in R 2.10 on Ubuntu
I'm trying to install Rcpp on Ubuntu 10.04 and getting this error (which implies that it doesn't exist):我正在尝试在 Ubuntu 10.04 上安装 Rcpp 并收到此错误(这意味着它不存在):
> 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.我有一个可用的 R 实例并安装了许多其他软件包。
Edit编辑
Now I'm getting this error when running R CMD build Rcpp
on the source code off svn:现在,在 svn 的源代码上运行
R CMD build Rcpp
时出现此错误:
** 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.
** 构建包索引...错误:在小插图上运行 Stangle '/home/vadmin/src/R/rcpp/pkg/Rcpp/inst/doc/Rcpp-modules.Rnw' 失败并显示消息:'lang' 的值无效:cpp 错误:安装包索引失败 * 删除“/tmp/Rinst3041838816/Rcpp”错误安装失败。
A few things:一些东西:
it has been on CRAN as Rcpp for years;多年来,它一直作为 Rcpp在CRAN 上使用; if you get a Rcpp not available error then you are looking at a bad CRAN mirror and I suggest using a different one
如果您收到Rcpp not available错误,那么您正在查看坏的 CRAN 镜像,我建议使用不同的镜像
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) Ubuntu 也有Rcpp Debian 软件包的Rcpp 版本,因此您可以执行“sudo apt-get install r-cran-rcpp”(但这可能是过时的版本,唉)
In general, Romain and I suggest for Rcpp questions to come to the rcpp-devel list .一般来说,Romain 和我建议 Rcpp 问题进入rcpp-devel 列表。
I'm JIPerotti from Argentina.我是来自阿根廷的 JIPerotti。 First, sorry for my english.
首先,对不起我的英语。 I had the same problem as stated here.
我遇到了与此处所述相同的问题。 But I solve it and may be useful to others.
但我解决了它,可能对其他人有用。 I have Ubuntu 9.10 Karmic Koala on a Pentium Dual Core T4200 (x86_64), successfully upgraded R to the 2.12.1 version, and then successfully installed Rcpp version 0.9.0
我在奔腾双核 T4200 (x86_64) 上安装了 Ubuntu 9.10 Karmic Koala,成功将 R 升级到 2.12.1 版本,然后成功安装了 Rcpp 版本 0.9.0
I make a kind of logbook with the process which I wrote in my blog:我用我在博客中写的过程制作了一种日志:
http://deliriosderayohauno.blogspot.com/2011/01/r-installation.html http://deliriosderayohauno.blogspot.com/2011/01/r-installation.html
I don't know so much about this page, so I hope not write this where I should not (sorry if it is the case).我对这个页面不太了解,所以我希望不要在我不应该写的地方写这个(如果是这样的话,很抱歉)。
Best regards此致
I was helped by uninstalling R, and reinstalling the developer version:我通过卸载 R 并重新安装开发人员版本得到了帮助:
sudo apt-get install r-base-dev
Then installing Rcpp in R:然后在 R 中安装 Rcpp:
install.packages('Rcpp')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.