[英]Error in loadNamespace(name) : there is no package called 'RInside'
Error in loadNamespace(name) : there is no package called 'Rcpp' ... Error in loadNamespace(name) : there is no package called 'RInside' loadNamespace(name)中的错误:没有名为'Rcpp'的软件包... loadNamespace(name)中的错误:没有名为'RInside'的软件包
I get the above error when trying make on the examples of RInside. 尝试在RInside的示例上执行时,出现上述错误。
RInside is in the user-library. RInside在用户库中。 So I set R_LIBS_USER to the directory in the Makefile. 因此,我将R_LIBS_USER设置为Makefile中的目录。
R_LIBS_USER := "C:/users/Me/Documents/R/win-library/3.0"
but that does not work either. 但这也不起作用。
Thanks for any advice. 感谢您的任何建议。
EDIT: 编辑:
It works fine if the packages are in "C:/R/R-3.0.2/library". 如果软件包位于“ C:/R/R-3.0.2/library”中,则可以正常工作。 R_LIBS_USER doesn't seem to work on Windows. R_LIBS_USER在Windows上似乎不起作用。
I fear this is local to your end. 我担心这对您而言是本地的。
If Rcpp and RInside are in fact in your default library location (and on Windows I sometimes copy them) then the examples build, as does the rest of the package. 如果Rcpp和RInside实际上位于您的默认库位置(并且在Windows上我有时会复制它们),则示例将生成,其他软件包也一样。 Recall that all this works for CRAN and the win-builder. 回想一下,所有这些都适用于CRAN和win-builder。
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)
and it is working fine now. 现在工作正常。
I know the question was asked long back. 我知道这个问题早就问了。 But I faced the same problem while using R from python (Anaconda). 但是当我从python(Anaconda)使用R时遇到了同样的问题。 Also I didnt find an reasonable explanation for it. 我也没有找到合理的解释。 Finally this is what worked for me. 最后,这对我有用。
import rpy2.robjects as ro
ro.r('''.libPaths('C:/Users/<remaining path>/R/win-library/3.1')''')
RSVM = importr('e1071')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.