Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
save/load/install a list of your currently installed R packages
# restore_packages.R
# installs each package from the stored list of packages
# source:
for (count in 1:length(installedpackages)) {
# store_packages.R
# stores a list of your currently installed packages
# source:
tmp = installed.packages()
installedpackages = as.vector(tmp[[,"Priority"]), 1])
save(installedpackages, file="~/installed_packages.rda")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.