ggplot无法加载。我卸载并重新安装了ggplot2。然后再卸载ggplot2,卸载R3.2.2,重新安装R3.2.2,重新安装ggplot2。同样的错误。scales.rdb损坏,内部错误-3。
这是我第一次尝试在Windows10OS中使用ggplot2。下面的错误消息+ sessionInfo。我看到sessionInfo在Windows8下运行R,但是安装了Windows 10。我不知道这是否有意义。
如有任何反馈,将不胜感激。
,我想明白了。scales.rdb文件已损坏。重新安装天平,因为install.packages(“秤”)没有工作。Install.packages(“缩放”,依赖关系=真)确实起了作用。
> library(ggplot2)
Error in get(Info[i, 1], envir = env) :
lazy-load database 'C:/Users/sbmack/Documents/R/win-library/3.2/scales/R/scales.rdb' is corrupt
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
Error: package or namespace load failed for ‘ggplot2’
> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] graphics grDevices utils datasets stats methods base
other attached packages:
[1] tidyr_0.3.1 dplyr_0.4.3
loaded via a namespace (and not attached):
[1] Rcpp_0.12.1 digest_0.6.8 assertthat_0.1 grid_3.2.2 plyr_1.8.3 R6_2.1.1 gtable_0.1.2 DBI_0.3.1
[9] magrittr_1.5 stringi_1.0-1 reshape2_1.4.1 proto_0.3-10 tools_3.2.2 stringr_1.0.0 munsell_0.4.2 parallel_3.2.2
[17] colorspace_1.2-6
发布于 2021-06-13 07:37:06
我的R工作室也有类似的问题,这对我来说很管用--
有关更详细的讨论和其他解决方案,请参阅此线程--Error in fetch(key) : lazy-load database。
https://stackoverflow.com/questions/33880211
复制相似问题