Runs the registered validation rules over a table and returns a
krt_validation_report. Structural rules check schema conformance offline;
semantic rules check cross-field consistency and, when resolve = TRUE,
identifier existence. Conditional packs (cell-line authentication, organism
metadata, ethics/consent) apply only when the relevant resource types are
present; they are minimal checks, not full ICLAC or ARRIVE assessments.
Usage
validate_krt(
x,
profile = NULL,
layers = c("structural", "semantic"),
resolve = FALSE,
severity = NULL,
attach = FALSE
)Arguments
- x
A krt_tbl.
- profile
Profile whose severity overrides apply (default the table's profile).
- layers
Which layers to run:
"structural","semantic", or both.- resolve
If
TRUE, semantic rules may perform online existence checks (off by default; never on CRAN).- severity
Optional named list mapping
rule_idto a severity (or"off"), overriding rule and profile defaults.- attach
If
TRUE, return the table with the findings stored in itsvalidationslot instead of returning the report.
