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.
I just posted a question with a possible solution:
update.packages(checkBuilt=TRUE, ask=FALSE)
What about that doesn't work for you?
来源:https://stackoverflow.com/questions/3974488/after-i-upgrade-my-r-version-how-can-i-easily-reinstall-all-the-packages-that-w