Reads calcofi: YAML frontmatter from all .qmd files in the workflows
directory and returns a list() of targets::tar_target() calls suitable
for use as the body of _targets.R. Includes a corrections_csv target
that tracks metadata/ship_renames.csv and metadata/measurement_type.csv,
so any edit to those files forces re-run of dependent ingest targets.
Arguments
- workflows_dir
Path to workflows directory (default:
here::here())- corrections
Character vector of correction file paths relative to
workflows_dir(default:c("metadata/ship_renames.csv", "metadata/measurement_type.csv"))- exclude
Character vector of target names to exclude from the pipeline (default: NULL). Excluded targets are also removed from other targets' dependency lists. Useful for skipping large workflows like
"ingest_calcofi_ctd-cast".- verbose
Print parsed workflow table (default: TRUE)
Value
A list() of tar_target() objects ready for _targets.R