Skip to content

Instantly share code, notes, and snippets.

@mevers
Last active August 14, 2017 01:46
Show Gist options
  • Save mevers/ac8eccfe45b0638a8b9a258664c91741 to your computer and use it in GitHub Desktop.
Save mevers/ac8eccfe45b0638a8b9a258664c91741 to your computer and use it in GitHub Desktop.
Install packages for RMarkdown workshop
# Install packages for RMarkdown workshop
pkg <- c("ggplot2", "rmarkdown", "knitr", "dplyr", "hrbrthemes", "scatterD3", "pander", "xtable", "DT", "plotly");
lapply(pkg, function(x) { if (!require(x, character.only = TRUE, quietly = TRUE)) {
cat(sprintf("Installing R package %s\n", x));
install.packages(x, repos = "http://cran.rstudio.com/");
require(x, character.only = TRUE, quietly = TRUE)}
})
@skurscheid
Copy link

perhaps we should add Rcpp? even thought it doesn't make sense on Windows machines as these install pre-compiled binaries

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