【发布时间】:2015-11-23 20:35:43
【问题描述】:
ggplot 加载失败。我卸载了ggplot2并重新安装。然后再次卸载ggplot2,卸载R 3.2.2,重新安装R 3.2.2,重新安装ggplot2。同样的错误。 scales.rdb 损坏,内部错误 -3。
这是我第一次尝试在 Windows 10 操作系统中使用 ggplot2。错误消息 + sessionInfo 下面。我看到 sessionInfo 有 R 在 Windows 8 下运行,但安装了 Windows 10。不知道有没有意义。
感谢任何反馈。
我想通了。 scales.rdb 文件已损坏。重新安装秤作为 install.packages("scales") 不起作用。 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
【问题讨论】:
-
重新安装包秤?
-
重新安装没有帮助