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