# installing package imports packages
pkg_list <- c("dplyr",
"tibble",
"devtools",
"here",
"lubridate",
"magrittr",
"purrr",
"rmarkdown",
"tidyr",
"testthat",
"usethis")
install.packages(pkgs = pkg_list, repos = "https://cran.rstudio.com/")
for(i in pkg_list){
if(!i %in% rownames(installed.packages())){
stop(paste("Package", i, "is not available"))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.