Skip to content

Instantly share code, notes, and snippets.

@benjamin-chan
Last active September 14, 2016 17:14
Show Gist options
  • Save benjamin-chan/40a801a1eb259dfbf54317abcea89252 to your computer and use it in GitHub Desktop.
Save benjamin-chan/40a801a1eb259dfbf54317abcea89252 to your computer and use it in GitHub Desktop.
Install R packages in bulk
packages <- c("devtools",
"data.table",
"lubridate",
"ggplot2",
"haven",
"readxl",
"tidyr",
"lme4",
"metafor",
"DiagrammeR",
"DT",
"knitr",
"rmarkdown",
"broom")
install.packages(packages,
repo="https://cloud.r-project.org",
dependencies=TRUE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment