简体   繁体   English

loadNamespace(name)中的错误:没有名为“ RInside”的软件包

[英]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.

相关问题 loadNamespace(name)中的错误:没有名为“ Rcompression”的软件包 - Error in loadNamespace(name) : there is no package called ‘Rcompression’ loadNamespace(name) 错误:没有名为“Rcpp”的包 - Error in loadNamespace(name) : there is no package called 'Rcpp' loadNamespace(name) 中的错误:没有名为“evaluate”的包 - Error in loadNamespace(name) : there is no package called 'evaluate' 在R中运行Quandl“loadNamespace(name)中的错误:没有名为&#39;curl&#39;的包 - Running Quandl in R “Error in loadNamespace(name) : there is no package called ‘curl’” knitr :: knit2pdf [loadNamespace(name)中的错误:没有名为“ tinytex”调用的程序包] - knitr::knit2pdf [Error in loadNamespace(name) : there is no package called 'tinytex' Calls] Rstudio中的Rstudio knit pdf loadNamespace(name):没有名为'rmarkdown'的包 - Rstudio knit pdf in Rstudio loadNamespace(name): there is no package called 'rmarkdown' 对于Copula包,R中的loadNamespace出错 - Error in loadNamespace in R for Copula package 错误:loadNamespace 中“tidyverse”的包或命名空间加载失败 - Error: package or namespace load failed for ‘tidyverse’ in loadNamespace loadNamespace中的错误,软件包plm找不到对象&#39;vI&#39; - Error in loadNamespace, object 'vI' not found with package plm 安装 package 时,是否有针对 R 给出错误消息“加载命名空间错误”的解决方案? - Is there a solution for R giving an error message "error in loadnamespace" when installing a package?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM