更新R包后报错,无备份能否回滚至旧版本?附RGui解决方法
问题:R包批量升级后出现版本冲突与函数缺失错误
我在RStudio中执行update.packages(ask=FALSE, dependencies=TRUE)对包进行批量升级后,重新运行多个R脚本时出现大量错误,示例如下:
Error in
mutate(): ! Problem while computing..1 = across(everything(), ~replace_na(., "date")). Caused by error inacross(): ! Problem while computing column...1. Caused by error inreplace_na(): ! could not find function "replace_na"
Error in spread(., rowname, value) : could not find function "spread"
Error: C stack usage 15926560 is too close to the limit
请问如果不想逐个修复这些问题,在未备份旧R包的情况下,能否回滚至之前的包版本?
后续更新:通过升级R版本解决大部分错误
在RGui中执行以下代码升级R后,大部分错误已解决:
install.packages("installr") library(installr) updateR()
内容的提问来源于stack exchange,提问作者ah bon
相关产品推荐
相关产品推荐

