Last active
April 24, 2017 22:29
-
-
Save sdtaylor/75f673fa2c445c95bf3d36dceed0c102 to your computer and use it in GitHub Desktop.
Install all the packages that were in the prior version of R
This file contains 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
prior_version = 3.3 | |
library_path = .libPaths()[1] | |
library_path = substr(library_path, 1, nchar(library_path)-3) | |
old_library_path=paste0(library_path, prior_version) | |
old_packages = list.files(old_library_path) | |
install.packages(old_packages) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment