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

后端 未结 3 988
轻奢々
轻奢々 2020-12-02 02:42

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

I get the above

相关标签:
3条回答
  • 2020-12-02 02:57

    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.

    0 讨论(0)
  • 2020-12-02 03:05

    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.

    0 讨论(0)
  • 2020-12-02 03:06

    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')
    
    0 讨论(0)
提交回复
热议问题