Created
February 13, 2018 14:35
-
-
Save pcejrowski/d66d08dc13e626e3ac9f70191a5f5d65 to your computer and use it in GitHub Desktop.
Installing R packages skipping those already installed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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