Skip to content

Instantly share code, notes, and snippets.

@pcejrowski
Created February 13, 2018 14:35
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 pcejrowski/d66d08dc13e626e3ac9f70191a5f5d65 to your computer and use it in GitHub Desktop.
Save pcejrowski/d66d08dc13e626e3ac9f70191a5f5d65 to your computer and use it in GitHub Desktop.
Installing R packages skipping those already installed
pkgs <- c("RCurl", "jsonlite", "statmod", "devtools", "roxygen2", "testthat")
for (pkg in pkgs) {
if (! (pkg %in% rownames(installed.packages()))) install.packages(pkg)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment