ggplot无法加载。我卸载了ggplot2并重新安装。然后再卸载ggplot2,卸载R 3.2.2,重新安装R 3.2.2,重新安装ggplot2。同样的错误。 scales.rdb损坏,内部错误-3。
这是我第一次尝试在Windows 10操作系统中使用ggplot2。错误信息+ sessionInfo如下。我看到sessionInfo在Windows 8下运行了R,但是安装了Windows 10。我不知道这是否有意义。
感谢任何反馈。
我明白了。 scales.rdb文件已损坏。重新安装scale作为install.packages(" scale")不起作用。 install.packages(" scales",dependencies = TRUE)确实有效。
> 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
答案 0 :(得分:0)
我的 R 工作室也有类似的问题 这对我有用--
有关更详细的讨论和其他解决方案,请参阅此线程--Error in fetch(key) : lazy-load database