Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
With the big release of R 3.0 today comes an unfortunate side effect of needing to re-install all of your packages. Luckily, R provides a pretty easy method of getting all of your packages into a list for automated re-install. Here’s how to do it for OSX users with a default install to the Library:
For Windows users, the same general process should work, assuming you change the file reference in the installed.packages function to the proper Windows location.
The one downside to this method is that only packages that are listed on CRAN will be reinstalled, so if you installed anything using devtools, you’ll need to re-install those packages again. But at the very least, the code snippet above is a quick way to re-install most of your packages.
EDIT, 4/4/13: Per Noam below, you can also use a more direct method:
update.packages(ask=FALSE, checkBuilt = TRUE)
Automated Re-Install of Packages for R 3.0 is an article from randyzwitch.com, a blog dedicated to helping newcomers to Web Analytics, with a heavy focus on WordPress self-hosted blogs and Google Analytics. If you liked this post, please visit randyzwitch.com to read more. Or better yet, tell a friend…the best compliment is to share with others!
Related posts:
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.