Skip to content

Instantly share code, notes, and snippets.

@yanping
Created January 6, 2012 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanping/1569241 to your computer and use it in GitHub Desktop.
Save yanping/1569241 to your computer and use it in GitHub Desktop.
install new packages
load("path/installedPackages.Rdata")
newip <- installed.packages()[,1]
for(i in setdiff(oldip, newip))
install.packages(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment