R: Automatic Re-installation of R Packages (Quick Tip)

  1. package_df <-as.data.frame(installed.packages(“/Library/Frameworks/R.framework/Versions/2.15/Resources/library”))
  2. package_list <- as.character(package_df$Package)
  3. install.packages(package_list)
  4. ???????????
  5. PROFIT