View source: R/evidence_schema.R
| validate_evidence | R Documentation |
Checks that a data.frame conforms to the evidence schema. Verifies column presence, types, and controlled vocabulary values.
validate_evidence(ev)
ev |
A data.frame to validate. |
TRUE invisibly if valid; throws an error otherwise.
ctx <- suppressMessages(r4sub_run_context("STUDY1", "DEV"))
ev <- suppressMessages(as_evidence(
data.frame(
asset_type = "validation", asset_id = "ADSL",
source_name = "pinnacle21", indicator_id = "SD0001",
indicator_name = "SD0001", indicator_domain = "quality",
severity = "high", result = "fail",
stringsAsFactors = FALSE
),
ctx = ctx
))
validate_evidence(ev)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.