report_diff() renders a structured review report from a comparison, its
classification and (optionally) an impact assessment. Human-readable HTML or
Quarto output is supported alongside machine-readable JSON and list output
for automated QC pipelines.
Usage
report_diff(
diff,
impact = NULL,
classified = NULL,
output = "html",
format = c("html", "quarto", "json", "list"),
title = NULL,
max_rows = 25L,
include_disclaimer = TRUE,
...
)Arguments
- diff
A
tdiffobject, ideally already passed throughclassify_changes().- impact
Optional
td_impactobject fromassess_impact().- classified
Optional classified
tdiffobject. If supplied it takes precedence overdifffor classification content.- output
Either a format (
"html","quarto","json","list") or a file path. When a path is given the format is inferred from the extension.- format
Report format. Ignored when
outputis a path.- title
Report title.
- max_rows
Maximum number of rows shown per table in HTML output.
- include_disclaimer
Include the regulatory/statistical disclaimer.
- ...
Reserved for future extensions.
