After I upgrade my R version, how can I easily reinstall all the packages that were installed in the old version?

Ryan C. Thompson picture Ryan C. Thompson · Oct 20, 2010 · Viewed 19.5k times · Source

Possible Duplicate:
Painless way to install a new version of 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?

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

Answer

Joshua Ulrich picture Joshua Ulrich · Oct 20, 2010

I just posted a question with a possible solution:

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

What about that doesn't work for you?