Created
May 8, 2018 05:31
-
-
Save klainfo/2149a5029ba634b3d4fc2327176e6b79 to your computer and use it in GitHub Desktop.
re-install all R packages when update R version (e.g., 3.4 -> 3.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package_df <- as.data.frame(installed.packages("/Library/Frameworks/R.framework/Versions/3.4/Resources/library")) | |
package_list <- as.character(package_df$Package) | |
install.packages(package_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment