尝试加载已安装的软件包时出现错误(我已经用ggplot2
以及devtools
和weathercan
尝试过。
install.packages("ggplot2")
似乎工作正常(无错误),并显示:
Installing package into ‘C:/Users/haley/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
当我尝试时:
library(ggplot2)
我收到错误消息:
Error: package or namespace load failed for ‘ggplot2’ in get(Info[i, 1], envir = env):
cannot open file 'C:/Users/haley/Documents/R/winlibrary/3.6/Rcpp/R/Rcpp.rdb':
No such file or directory
我已经尝试过更新软件包,更新RStudio,安装pbkrtest
,并使用dependencies=true
安装软件包