Writes a human-readable SUMMARY.txt into the output directory,
covering run metadata, the exact absolute paths used, result counts, the
files produced, and optional notes, contact, and licence lines.
Usage
write_summary_txt(
manifest,
output_dir,
paths,
what_was_done = NULL,
contact = NULL,
licence = NULL
)Arguments
- manifest
A manifest as returned by
make_manifest(); itsmetasupplies project/author/run details.- output_dir
Directory to write
SUMMARY.txtinto and to list produced files from.- paths
A named list of absolute paths to report (e.g.
capsule,input,results,analysis_script,provenance) .- what_was_done
Optional character vector of bullet points describing what the run did.
- contact
Optional contact string appended to the summary.
- licence
Optional licence string appended to the summary.
Examples
man <- make_manifest(list(project = "demo", author = "A. Author"),
environment = FALSE)
man <- record(man, "row_count", observed = 20, expected = 20)
#> row_count observed = 20.0000 expected = 20.0000 [PASS]
out <- file.path(tempdir(), "demo-run")
dir.create(out, showWarnings = FALSE)
s <- write_summary_txt(man, out, paths = list(results = out))
readLines(s)[7:8]
#> [1] "Project: demo" "Author: A. Author"