# installing package imports packages
pkg_list <- c("dplyr",
"tibble",
"devtools",
"fs",
"gh",
"glue",
"here",
"lubridate",
"magrittr",
"purrr",
"readr",
"snakecase",
"stringr",
"tibble",
"rmarkdown",
"shiny",
"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"))
}
}
# install Covid19R project packages
packages_list <- utils::read.csv("https://raw.githubusercontent.com/Covid19R/covid19Rdata/master/data-raw/packages.csv",
stringsAsFactors = FALSE)
args <-paste(packages_list$username, packages_list$package, sep = "/")
for (a in args) {
devtools::install_github(a, upgrade = "never")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.