loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中的错误:没有名为"Rcpp"的软件包 [英] Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : there is no package called ‘Rcpp’

查看:430
本文介绍了loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中的错误:没有名为"Rcpp"的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上我想使用wordcloud功能.我正在通过R控制台工作.但是如果那是我的话,我可以使用Rstudio.

Basically I want to use wordcloud function. I'm working through R console. But I could use Rstudio if thats the problem.

当我使用

 wordcloud(r_stats_text_corpus)
 Error: could not find function "wordcloud"

我也尝试过

library("wordcloud")
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called ‘Rcpp’
Error: package or namespace load failed for ‘wordcloud’

然后:

install.packages("Rcpp")
Installing package into ‘C:/Users/Abbas/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://pbil.univ-lyon1.fr/CRAN/bin/windows/contrib/3.2/Rcpp_0.12.3.zip'
Content type 'application/zip' length 3197148 bytes (3.0 MB)
downloaded 3.0 MB

package ‘Rcpp’ successfully unpacked and MD5 sums checked

Warning: unable to move temporary installation ‘C:\Users\Abbas\Documents\R\win-library\3.2\file2388511e56ac\Rcpp’ to ‘C:\Users\Abbas\Documents\R\win-library\3.2\Rcpp’
The downloaded binary packages are in
        C:\Users\Abbas\AppData\Local\Temp\RtmpwrnScP\downloaded_packages

当我检查路径C:\Users\Abbas\Documents\R\win-library\3.2\file2388511e56ac\Rcpp时,我只能找到空文件夹.我仍然将此文件夹移至C:\Users\Abbas\Documents\R\win-library\3.2\Rcpp.即使在此之后,当我尝试加载Rcpp软件包时,我仍然收到错误消息.

When I check the path C:\Users\Abbas\Documents\R\win-library\3.2\file2388511e56ac\Rcpp I could only find empty folder. Still I moved this folder to C:\Users\Abbas\Documents\R\win-library\3.2\Rcpp. Even after this when i try to load Rcpp package I get the error.

library("Rcpp")
Error in library("Rcpp") : there is no package called ‘Rcpp’

另外,当检查路径C:\Users\Abbas\AppData\Local\Temp\RtmpwrnScP\downloaded_packages时,我可以在其中看到zip文件Rcpp_0.12.3.

Also when checking the path C:\Users\Abbas\AppData\Local\Temp\RtmpwrnScP\downloaded_packages, I can see zip file Rcpp_0.12.3 there.

帮助!

当我通过Rstudio尝试此操作时,我在这里缺少什么?

When I'm trying this through Rstudio, What am I missing on here?

> install.packages(Rcpp)
Error in install.packages : object 'Rcpp' not found
> source('~/.active-rstudio-document', echo=TRUE)

推荐答案

感谢您的帮助.我解决了! 手动将Rcpp zip文件提取到.libPaths()

Thanks for the help. I got the fix! Manually extracted the Rcpp zip file to path mentioned in .libPaths()

这篇关于loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中的错误:没有名为"Rcpp"的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆