Skip to content

Instantly share code, notes, and snippets.

@sdtaylor
Last active April 24, 2017 22:29
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sdtaylor/75f673fa2c445c95bf3d36dceed0c102 to your computer and use it in GitHub Desktop.
Save sdtaylor/75f673fa2c445c95bf3d36dceed0c102 to your computer and use it in GitHub Desktop.
Install all the packages that were in the prior version of R
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