Created
June 7, 2018 04:28
-
-
Save sgoley/e99bf0a367d652e547f85c6e08e553f7 to your computer and use it in GitHub Desktop.
Get library list from one R installation and move to new installation
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
#export all packages from old installation: | |
ip <- as.data.frame(installed.packages()) | |
dump("ip","ip.Rdmpd") | |
#install all packages into new installation: | |
setwd("/path/to/dumpfile") | |
source("ip.Rdmpd") | |
install.packages(ip$Package) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment