dr_pointblank_report()
Requires
dr_validate() with keep_agents = TRUE. Agents are held only in
memory and are never serialized into the registry. Failed-row extracts and
checked-table samples are disabled during interrogation. The native report
describes pointblank action levels; the authoritative dataraft gate is shown
by dr_quality_report(), especially when using policy = "rule".
Usage
dr_pointblank_report(x, rule, path, overwrite = FALSE)Arguments
- x
- A quality tibble containing retained pointblank agents.
- rule
- Name supplied to
dr_pointblank_checks(). - path
- Output HTML path.
- overwrite
- Replace an existing output.
Value
The normalized output path, invisibly.
Examples
\dontshow{if (requireNamespace("pointblank", quietly = TRUE)) withAutoprint(\{ # examplesIf}
contract <- dr_contract("orders",
version = "1",
columns = c(amount = "numeric"),
rules = list(dr_pointblank_checks("amounts", function(data) {
pointblank::create_agent(data) |>
pointblank::col_vals_gte("amount", 0)
}))) |>
dataraft.core::dr_contract_meta(owner = "Analytics",
description = "Orders",
grain = "One order",
producer = "Analytics")
quality <- dr_validate(data.frame(amount = c(10, -1)), contract,
keep_agents = TRUE)
path <- tempfile(fileext = ".html")
dr_pointblank_report(quality, "amounts", path)
unlink(path)
\dontshow{\}) # examplesIf}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.