当我尝试加载ggplot2时收到错误消息。
当我尝试:
install.packages('ggplot2',dependencies = T)
我收到以下错误消息:
No package called 'Rcpp'
Error:package or namespace load failed for ggplot2.
然后我尝试:
install.packages('Rcpp')
我已成功下载Rcpp,但是当我尝试加载ggplot2时,收到相同的错误消息:
No package called 'Rcpp'
Error:package or namespace load failed for ggplot2.
我的会话信息:
R version 3.2.3(2015-12-10)
Platform: x86_64-w64-mingw32/x64(64-bit)
Running under : Windows >= 8 x64(build 9210)
locale: [1] Lc_COLLATE = English-United States.1252 LC_CTYPE = English_United States 1252 [3]LC_MONETARY = English_United States.1252 LC_Numeric =c [5] LC_TIME = English_United States.1252
attached base packages [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached)
[1] tools_3.2.3 gtable_0.1.2 grid_3.2.3
答案 0 :(得分:0)
您需要Rtools才能安装Rcpp。 In the FAQ, page 1
答案 1 :(得分:0)
当我尝试安装Rcpp时 我收到以下消息:
unable to move temporary installation
C\users\kay\Documents\R\win-library\3.2\file26ec7f366\Rcpp to
C\\users\kay\Documents\R\win-library\3.2\Rcpp
下载的二进制包在
中C:\users\kay\AppData\load\temp\Rtmpkt6uIh\downloaded_packages.
我直接从https://cran.r-project.org/web/packages/Rcpp/index.html下载了压缩文件 并将其直接提取到:
C\users\kay\Documents\R\win-library\3.2
这很有用。我现在让ggplot2工作了。