Skip to contents

Resolves `_quarto.yml` `render:` patterns to files and returns a named character vector of MD5 hashes, where names are relative file paths.

Usage

list_quarto_render_hashes(
  quarto_yml = "_quarto.yml",
  root_dir = here::here(),
  exclude_targets_qmd = TRUE
)

Arguments

quarto_yml

Character scalar. Path to `_quarto.yml`, relative to `root_dir` or absolute.

root_dir

Character scalar. Project root used to resolve relative paths. Defaults to `here::here()`.

exclude_targets_qmd

Logical scalar. If `TRUE`, excludes `.qmd` files discovered in `targets::tar_manifest()` `command` entries when those files exist and are part of the resolved render list.

Value

Named character vector of MD5 hashes. Names are relative file paths.

Examples

if (FALSE) { # \dontrun{
list_quarto_render_hashes()
} # }