
Check a bundle against the script that produced it
Source:R/provenance.R
edaphos_provenance_check.RdReads the provenance block written by edaphos_provenance() and reports
whether the producing script has changed since the bundle was built.
Value
A list with ok (logical, or NA when the bundle carries no
provenance) and reason. ok = NA is deliberately not FALSE: a bundle
with no block is unbindable rather than stale, and the two want different
remedies.
Examples
# A bundle that carries no provenance reports NA, not FALSE.
edaphos_provenance_check(list(a = 1))
#> $ok
#> [1] NA
#>
#> $reason
#> [1] "no provenance block"
#>