试图安装开发版的r包,损坏了数据库?

问题描述 投票:0回答:1

我试图使用geom_sf,所以我需要安装ggp​​lot2的开发版本。我尝试使用我使用的here说明这样做:

devtools::install_github("tidyverse/ggplot2")

但出了点问题! geom_sf仍然没有显示,现在我无法加载或卸载tidyverse或ggplot2的active或dev版本。我一直收到有关数据库损坏的以下信息。

Error: package or namespace load failed for ‘ggplot2’ in get(Info[i, 1], envir = env):
 lazy-load database '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/ggplot2/R/ggplot2.rdb' is corrupt
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1

该怎么办?我想恢复我的tidyverse,但最终我仍然想安装ggp​​lot2的开发版本,以便我可以使用geom_sf。

r ggplot2 devtools
1个回答
1
投票

将评论转换为答案:

你尝试重启R吗?在安装正在安装的软件包已在会话中加载时,可能会发生这种情况。所以我会重新启动,尝试加载包;如果失败,重新启动一个完全干净的会话,重新安装,重新启动,......利润。

© www.soinside.com 2019 - 2024. All rights reserved.