- #Get currently installed packages
- package_df <-as.data.frame(installed.packages("/Library/Frameworks/R.framework/Versions/2.15/Resources/library"))
- package_list <- as.character(package_df$Package)
- #Re-install Install packages
- install.packages(package_list)you can also use a more direct method:
update.packages(ask=FALSE, checkBuilt = TRUE)
from: http://randyzwitch.com/automated-re-install-of-packages-for-r-3-0/
No comments:
Post a Comment