Learn R Programming

schemate (version 0.1.0)

schema_check: Create a schema check fragment

Description

schema_check() creates a raw schema fragment with a check operator. The helper performs only lightweight structural validation; semantic validation of kind and check arguments is handled by schema_doc() and schema edit verbs.

Usage

schema_check(kind, ..., description = NULL)

Value

A raw schema fragment accepted by schema_doc() and schema edit verbs.

Arguments

kind

Check kind string.

...

Additional named checkmate arguments stored inside check.

description

Optional node description.

Examples

Run this code
schema_check("string", min.chars = 1)
schema <- schema_doc(schema_check("string", min.chars = 1))
schema

Run the code above in your browser using DataLab