Reads the calcofi: block from the YAML front matter of each
ingest_*.qmd workflow and returns it keyed by
"\{provider\}_\{dataset\}". This is the authoritative source for
dataset-level metadata, table ownership, workflow links, and ERD colors
consumed by merge_metadata_json() and release_database.qmd.
Arguments
- workflow_dir
Directory containing the
ingest_*.qmdfiles.- pattern
Regular expression matching ingest filenames (default
"^ingest_.*\\.qmd$").- in_release_only
Drop ingests that declare
calcofi.in_release: false(defaultFALSE, i.e. return every ingest).release_database.qmdpassesTRUEso an in-progress ingest does not reach the release'sdatasettable, ERD ormetadata.json. Seerelease_excluded_datasets().
Value
A named list keyed by provider_dataset. Each element is the
parsed calcofi block, augmented with provider_dataset and
qmd (the source file path). Ingests whose block lacks
provider/dataset are skipped with a warning.
Examples
if (FALSE) { # \dontrun{
ingest_yaml <- read_ingest_yaml("workflows")
names(ingest_yaml) # "swfsc_ichthyo" "calcofi_bottle" ...
ingest_yaml$calcofi_bottle$tables_owned
} # }