vignettes/mkdoc.R

# JMDplots/vignettes/mkall.R
# This script compiles all the vignettes and moves them to inst/doc
# so they will be installed when the package is installed from GitHub
# 20200802

files <- dir(pattern = "Rmd")
print(system.time(
  for(f in files) {
    sep <- paste(rep("=", nchar(f) + 4), collapse = "")
    message()
    print(sep, quote = FALSE)
    print(paste("|", f, "|"), quote = FALSE)
    print(sep, quote = FALSE)
    rmarkdown::render(f)
    from <- gsub("Rmd", "html", f)
    to <- file.path("../inst/doc", from)
    file.rename(from, to)
  }
))
jedick/JMDplots documentation built on April 12, 2025, 1:35 p.m.