other/copy-static-files-to-docs.R

static <- list.files(here::here("other/static/"),
                     all.files = TRUE, recursive = TRUE)
if(!dir.exists(here::here("docs/image"))) {
  dir.create(here::here("docs/image"))
}
lapply(static, function(x) {file.copy(
  from = here::here("other/static/", x),
  to = here::here("docs/", x)
)})
djnavarro/bs4cards documentation built on Dec. 20, 2021, 12:04 a.m.