15
我刚刚升级到新的GGPLOT2包(2.0.0),并不断得到一个错误,当我尝试加载它。未能加载新GGPLOT2中的R
> library(ggplot2)
Error in get(method, envir = home) :
lazy-load database 'C:/Users/<blahblahblah>/Documents/R/win-library/3.2/ggplot2/R/ggplot2.rdb' is corrupt
In addition: Warning messages:
1: package ‘ggplot2’ was built under R version 3.2.3
2: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], :
restarting interrupted promise evaluation
3: In get(method, envir = home) :
restarting interrupted promise evaluation
4: In get(method, envir = home) : internal error -3 in R_decompress1
Error: package or namespace load failed for ‘ggplot2’
我能够加载R以外的包,这样的dplyr,这意味着不应该有什么不对的所需要的所有包我“R_decompress1”功能。那么我认为在CRAN二进制可能已损坏(可能性不大,但一件容易的检查)。我使用github页面上的建议方法从当前源进行安装。
> devtools::install_github("hadley/ggplot2")
之后完成的干净,我收到以下错误(类似以前)
> library(ggplot2)
Error in get(Info[i, 1], envir = env) :
lazy-load database 'C:/Users/jclutter/Documents/R/win-library/3.2/ggplot2/R/ggplot2.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’
我运行v 3.2.1版本与RStudio 0.99.842在Windows 7平台。有什么想法吗?
编辑:
我请求install命令的输出:
> remove.packages('ggplot2')
Removing package from ‘C:/Users/jclutter/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
> install.packages('ggplot2')
Installing package into ‘C:/Users/jclutter/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.2/ggplot2_2.0.0.zip'
Content type 'application/zip' length 1977623 bytes (1.9 MB)
downloaded 1.9 MB
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\jclutter\AppData\Local\Temp\1\RtmpAHUju4\downloaded_packages
做,当你安装它,你有什么警告? – MLavoie
我刚删除它并安装它。它安装干净,没有警告。下面是输出: 好了,不知道如何添加输出这条评论...(似乎有点限制) –
好吧,我增加了安装命令到原来的职位 –