R/prep_vignette.R

Defines functions vignette

#' @include lists.R
#' @include chk_vignette.R
#' @include prep_utils.R

PREPS$vignette <- function(state, path = state$path, quiet) {
  run_prep_step(state, "vignette", function(path) {
    vfiles <- vignette_files(path)
    pd_list <- list()
    for (f in vfiles) {
      pd <- vignette_parse_data(f)
      if (!is.null(pd)) {
        pd_list[[f]] <- list(
          parse_data = pd,
          lines = readLines(f, warn = FALSE)
        )
      }
    }
    pd_list
  }, path = path, silent = quiet)
}

Try the goodpractice package in your browser

Any scripts or data that you put into this service are public.

goodpractice documentation built on June 5, 2026, 5:06 p.m.