rf <- tempfile(fileext = ".yaml")
writeLines(c("checks:", " - id: R001", " type: range",
" variable: score", " min: 0", " max: 100"), rf)
if (requireNamespace("yaml", quietly = TRUE)) {
cfg <- dcc_config(dcc_rules(rf), actions = list(R001 = "set_na"))
dcc_validate_config(cfg)
}
Run the code above in your browser using DataLab