Error in loadNamespace(name) : there is no package called 'RInside'

空扰寡人 提交于 2019-11-26 14:51:49

问题


Error in loadNamespace(name) : there is no package called 'Rcpp' ... Error in loadNamespace(name) : there is no package called 'RInside'

I get the above error when trying make on the examples of RInside.

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"

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". R_LIBS_USER doesn't seem to work on Windows.


回答1:


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. Recall that all this works for CRAN and the win-builder.




回答2:


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.




回答3:


I know the question was asked long back. But I faced the same problem while using R from python (Anaconda). 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')


来源:https://stackoverflow.com/questions/20569277/error-in-loadnamespacename-there-is-no-package-called-rinside

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!