Appends one named cross-check entry to a manifest, classifying it as
PASS, DIFFER, or INFO, printing a formatted line to the console,
and returning the updated manifest.
Usage
record(
manifest,
name,
observed,
expected,
tol = 1e-04,
group = "general",
synthetic = FALSE
)Arguments
- manifest
A manifest as returned by
make_manifest().- name
Unique name for this cross-check; used as the result key.
- observed
The observed value (numeric or otherwise).
- expected
The expected value to compare against.
- tol
Numeric tolerance; a numeric pair within
tolisPASS. Defaults to0.0001.- group
Optional grouping label for the entry. Defaults to
"general".- synthetic
Logical; if
TRUEthe entry is markedINFObecause comparison against synthetic data is not meaningful.