You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

更新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 in across(): ! Problem while computing column ...1. Caused by error in replace_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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.14 13:35:44