Yes of course, here is the code for the packages:
## First specify the packages of interest
#devtools::install_github("briandconnelly/ggplot2bdc")
packages = c("plyr",
"dplyr",
"ggplot2",
"plotly",
"haven",
"waffle",
"flexdashboard",
"readr",
"shiny",
"shinythemes" ,
"shinydashboard",
"rsconnect",
"ggplot2bdc")
## Now load or install&load all
package.check <- lapply( packages, FUN = function(x) {
if (!require(x, character.only = TRUE)) {
install.packages(x, dependencies = TRUE)
library(x, character.only = TRUE)
}
}
)