Skip to content

Instantly share code, notes, and snippets.

@sgoley
Created June 7, 2018 04:28
Show Gist options
  • Save sgoley/e99bf0a367d652e547f85c6e08e553f7 to your computer and use it in GitHub Desktop.
Save sgoley/e99bf0a367d652e547f85c6e08e553f7 to your computer and use it in GitHub Desktop.
Get library list from one R installation and move to new installation
#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