【问题标题】:ggplot2 fails to loadggplot2 加载失败
【发布时间】:2015-11-23 20:35:43
【问题描述】:

ggplot 加载失败。我卸载了ggplot2并重新安装。然后再次卸载ggplot2,卸载R 3.2.2,重新安装R 3.2.2,重新安装ggp​​lot2。同样的错误。 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

【问题讨论】:

  • 重新安装包秤?
  • 重新安装没有帮助

标签: r ggplot2 load


【解决方案1】:

我的 R 工作室也有类似的问题 这对我有用--

  1. 工具->检查包更新-->全选并更新
  2. 使用 .rs.restartR() 重新启动 R 会话
  3. 再次安装ggp​​lot2,问题解决!

更详细的讨论和其他解决方法,请参考本帖--Error in fetch(key) : lazy-load database

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-10-21
    • 1970-01-01
    • 2018-11-09
    • 2011-01-04
    • 2019-07-03
    相关资源
    最近更新 更多