powered by
Create a schema group fragment
schema_group(names, value, description = NULL)
A raw schema group fragment accepted in a schema document groups
groups
list or by schema_add_group().
schema_add_group()
Field names covered by the group.
Schema node fragment containing exactly one primary operator.
Optional group description.
schema <- schema_doc(list( check = list(kind = "list"), groups = list(schema_group(c("x", "y"), schema_check("number"))) )) schema schema_validate(schema, list(x = 1, y = 2), mode = "test")
Run the code above in your browser using DataLab