dr_quality_report()
Exports persisted check metadata, counts and segment labels. No source rows
are collected. The HTML is self-contained, escapes cell contents and displays
status as text. An empty result is explicitly reported as not checked.
Usage
dr_quality_report(
x,
path = NULL,
format = c("html", "json"),
title = "dataraft quality report",
overwrite = FALSE
)Arguments
- x
- Quality tibble or a run/dbt result accepted by
dr_quality(). - path
- Optional output file path. Omit it to inspect a compact table.
- format
- HTML or JSON.
- title
- Human-readable report title.
- overwrite
- Replace an existing file only when explicitly requested.
Value
A diagnostic tibble when
path is omitted; otherwise the normalized
output path, invisibly.
Examples
contract <- dr_contract("orders", version = "1",
columns = c(id = "integer"), key = "id")
quality <- dr_validate(data.frame(id = c(1L, 1L)), contract)
path <- tempfile(fileext = ".html")
dr_quality_report(quality, path)
unlink(path)See also
Documentation source snapshot · View source at d9cb454 ↗
Code examples are documented source examples; they are not executed in this website build.
Code examples are documented source examples; they are not executed in this website build.