R/im-export.R
write_rules.Rd
Read and write rules to a yaml file
write_rules(x, file) read_rules(file)
a list of rules
a filename
the filename invisibly
read_rules(): reads a ruleset back in
read_rules()
rr <- ruleset( rule(mpg > 10), rule(cyl %in% c(4, 6, 8)) ) file <- tempfile(fileext = ".yml") write_rules(rr, file)