Runs stac-validator (pip, stac_validator) over every written document when
it is on PATH, and always runs a structural check: that every document parses, carries type/stac_version/id, that
every child/item link resolves to a file that was written, and that every
asset has an href and a type. The structural half always runs, so a
machine without the validator still fails on a broken catalog.
Usage
check_stac(dir, network = !nzchar(Sys.getenv("CALCOFI_SKIP_LINK_CHECK")))Arguments
- dir
the directory
build_stac()wrote- network
run the external validator (it fetches the STAC JSON schemas); defaults to off when
CALCOFI_SKIP_LINK_CHECKis set
Value
A tibble document, finding, level, detail —
one ok row per document that passed.