无法在 R 4.0.5 中加载 tidyverse,有什么线索吗?

3
library(tidyverse)

我刚刚将我的 R 升级到了版本 4.0.5,但是当我尝试加载 tidyverse 时,出现了这个错误。有人知道怎么解决吗?

错误: package or namespace load failed for ‘tidyverse’: .onAttach failed in attachNamespace() for 'tidyverse', details: call: base::nchar(wide_chars$test, type = "width") error: lazy-load database 'C:/Users/motieno/Documents/R/win-library/4.0/cli/R/sysdata.rdb' is corrupt


2
尝试移除并重新安装tidyverse。 remove.packages("tidyverse");install.packages("tidyverse") - mhovd
尝试这个:关闭所有程序并重新启动。 - TarJae
2个回答

1

这只是解决了它,感谢 @mhovid

remove.packages("tidyverse");install.packages("tidyverse")

0

更新 R 版本和已安装的软件包的更通用方法是使用 installr 软件包:

if(!require("installr")) install.packages('installr')
library("installr")
updateR() # this will open dialog boxes to take you through the steps.
# OR use:
# updateR(TRUE) # this will use common defaults and will be the safest/fastest option

谢谢@pietrodito。确实非常有用。我会在下次更新中尝试updateR(TRUE)函数。 - Moses
不用谢我,如果您觉得有用,请接受我的答案。 - pietrodito

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接