升级 R 版本后,如何轻松重新安装旧版本中安装的所有软件包?

问题描述:

可能的重复:
安装新版 R 的无痛方式?

在 R 中,软件包在升级之间不兼容,必须重新安装.有什么方法可以轻松地在新版本中安装与我在旧版本中安装的相同的软件包集?

In R, packages are not compatible across upgrades, and must be reinstalled. Is there any way to easily install the same set of packages in the new version as what I had installed in the old version?

我无法轻松访问旧版本的 R,因为我是通过 apt 升级的.

I can't easily access the old version of R, since I upgrade via apt.

我刚刚发布了一个问题以及可能的解决方案:

I just posted a question with a possible solution:

update.packages(checkBuilt=TRUE, ask=FALSE)

那对你不起作用怎么办?

What about that doesn't work for you?