Skip to contents

Serialises a sas_triage() decision table to YAML, one entry per macro name, recording its status and every file that defines it.

Usage

write_macro_manifest(x, path)

Arguments

x

A data.frame returned by sas_triage.

path

Character. Destination `.yaml` path.

Value

Invisibly, path.

Details

The manifest deliberately contains no timestamp. It describes a frozen 2019 corpus, and a generated-on field would defeat the byte-for-byte reproducibility that makes the manifest trustworthy as a reviewed artifact. Run metadata belongs in the report, not here. This diverges from update_manifest, whose extract_date is meaningful because the datasets it tracks genuinely change over time.

Examples

# \donttest{
d <- system.file("extdata", "macros", package = "hvtiRutilities")
if (nzchar(d)) {
  write_macro_manifest(sas_triage(d), tempfile(fileext = ".yaml"))
}
# }