Render the validation report (HTML) and write the JSON sidecar
Source:R/report.R
render_validation_report.RdRenders the bundled R Markdown template to a self-contained HTML report and
writes a machine-readable validation_results.json alongside it.
Usage
render_validation_report(
results,
output_dir,
cdm_schema,
cohort_id,
package_version = as.character(utils::packageVersion("rwevalidate")),
run_date = Sys.time(),
quiet = TRUE
)Arguments
- results
Combined results list (e.g.
list(attrition = ..., density = ...), optionallydata_source = ...).- output_dir
Directory to write the report into (created if needed).
- cdm_schema
CDM schema name (for the report header / JSON).
- cohort_id
Cohort definition id (for the report header / JSON).
- package_version
Package version string. Defaults to the installed
rwevalidateversion.- run_date
Timestamp for the run. Defaults to
base::Sys.time().- quiet
Passed to
rmarkdown::render(). DefaultTRUE.