Skip to content

Instantly share code, notes, and snippets.

@casallas
Created July 23, 2014 05:14
Show Gist options
  • Save casallas/3227c4ea998671e1dc72 to your computer and use it in GitHub Desktop.
Save casallas/3227c4ea998671e1dc72 to your computer and use it in GitHub Desktop.
Check installed R packages
res <- apply(installed.packages(), 1, function(ip){require(package=ip["Package"], lib.loc=ip["LibPath"], character.only=T)})
res[res==F]
@casallas
Copy link
Author

casallas commented Nov 1, 2014

There may be some trouble with this mehtod if you have too many packages

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