package 'xxx' was installed before R 4.0.0: please re-install it

更新conda的R版本,会报错package 'IRkernel' was installed before R 4.0.0: please re-install it。

# 此步骤具体作用不明朗,不确定是否起到作用
.libPaths(R.home("C:\\Users\\NINGMEI\\anaconda3\\Lib\\R\\library"))

# 更新包
update.packages(ask = FALSE, checkBuilt = TRUE)

参考链接:
https://github.com/conda-forge/r-base-feedstock/issues/129
https://www.jianshu.com/p/edee07f7be6d

本文链接:

https://ma.ge/archives/573.html