问题描述
loadNamespace(name) 中的错误:没有名为Rcpp"的包...loadNamespace(name) 错误:没有名为RInside"的包
Error in loadNamespace(name) : there is no package called 'Rcpp' ... Error in loadNamespace(name) : there is no package called 'RInside'
在 RInside 的示例上尝试 make 时出现上述错误.
I get the above error when trying make on the examples of RInside.
RInside 位于用户库中.所以我将 R_LIBS_USER 设置为 Makefile 中的目录.
RInside is in the user-library. So I set R_LIBS_USER to the directory in the Makefile.
R_LIBS_USER := "C:/users/Me/Documents/R/win-library/3.0"
但这也不起作用.
感谢您的建议.
如果包在C:/R/R-3.0.2/library"中,它工作正常.R_LIBS_USER 似乎不适用于 Windows.
It works fine if the packages are in "C:/R/R-3.0.2/library". R_LIBS_USER doesn't seem to work on Windows.
推荐答案
我也遇到了同样的问题,看了 Dirk 的回复就跑了
I was also having the same problem and read Dirk's reply and just ran
install.packages("Rcpp", dependencies = TRUE)
install.packages("RInside", dependencies = TRUE)
现在工作正常.
这篇关于loadNamespace(name) 错误:没有名为“RInside"的包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!