assert_valid_format.Rd
Assert Nested List can be used as Format Argument in Reformat.
assert_valid_format(object)
(list) to assert.
list
invisible TRUE or an error message if the criteria are not fulfilled.
TRUE
format <- list( df1 = list( var1 = rule("X" = "x", "N" = c(NA, "")) ), df2 = list( var1 = rule(), var2 = rule("f11" = "F11", "NN" = NA), var3 = empty_rule ), df3 = list() ) assert_valid_format(format)