Reads each .qmd file in a directory and extracts the calcofi: block
from the YAML frontmatter. Returns a tibble describing each workflow's
target name, type, dependencies, and output path.
Usage
parse_qmd_frontmatter(workflows_dir = here::here(), pattern = "*.qmd")Arguments
- workflows_dir
Path to the directory containing
.qmdfiles (default: current directory viahere::here())- pattern
Glob pattern for
.qmdfiles (default:"*.qmd")
Value
Tibble with columns: qmd_file, target_name, workflow_type,
dependency (list column), output, modifies (list column of
dependency table names this ingest inserts/modifies)
Examples
if (FALSE) { # \dontrun{
wf <- parse_qmd_frontmatter("workflows/")
wf |> dplyr::filter(workflow_type == "ingest")
} # }