Writes a self-contained HTML report to a temp file and opens it in the
Positron / RStudio Viewer pane (or the system browser as fallback).
Intended for interactive use and the verify/ scripts.
See also
validation_report() to write to a specific path.
Other conformance:
adam_rules(),
build_anchor_index(),
clear_ct(),
fda_rules(),
fetch_core_rules(),
fetch_herald_rules(),
herald_rules_cache_dir(),
list_ct(),
load_herald_config(),
new_herald_context(),
pmda_rules(),
register_ct(),
register_operator(),
rule_catalog(),
rule_config(),
update_core_rules(),
validate(),
validate_spec(),
validate_spec_define(),
validation_report()
Examples
spec <- herald_spec(
ds_spec = data.frame(dataset = "DM", label = "Demographics",
stringsAsFactors = FALSE),
var_spec = data.frame(dataset = "DM", variable = "STUDYID",
label = "Study ID", data_type = "text",
length = "12", stringsAsFactors = FALSE)
)
dm <- data.frame(STUDYID = "S1", EXTRA = "x", stringsAsFactors = FALSE)
dir <- tempfile()
dir.create(dir)
write_xpt(dm, file.path(dir, "dm.xpt"), dataset = "DM")
result <- validate(dir, spec = spec)
unlink(dir, recursive = TRUE)
if (FALSE) { # \dontrun{
verify_html_report(result)
} # }
