Skip to content

Instantly share code, notes, and snippets.

@bselden
Created July 20, 2016 19:13
Show Gist options
  • Save bselden/747c0d11eac380b4daadbaef59f68404 to your computer and use it in GitHub Desktop.
Save bselden/747c0d11eac380b4daadbaef59f68404 to your computer and use it in GitHub Desktop.
### Get a list of all your installed packages (so that you can reinstall them after updating R)
a <- installed.packages()
my_pkgs <- dimnames(a)[[1]]
save(my_pkgs, file="my_pkgs.RData")
load("my_pkgs.RData")
@rBatt
Copy link

rBatt commented Jul 20, 2016

tried to figure out how to submit a pull request to a gist .. maybe you can't.

I forked and made a small edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment