The tracked output: for a pipeline notebook. Bytes are a pure function of
target, content_hash and the (content-derived) stats, keys in fixed order,
NO wall-clock — so targets format = "file" re-hashes to the SAME value when
the data is unchanged and downstream targets do not re-run. Idempotent: if the
file already holds identical bytes it is left untouched (mtime preserved) unless
force. Keep stats deterministic (counts, ranges, versions) and free of
machine-specific paths so the manifest is host-independent.
Usage
write_manifest(path, target, content_hash, stats = list(), force = FALSE)Arguments
- path
manifest path (the notebook's
output:)- target
target name
- content_hash
from
hash_parquet()/hash_query()- stats
named list of deterministic summary stats
- force
rewrite even if unchanged (default
FALSE; seeforce_target())