
Validate data against a schema and output results
check_and_export.RdThis function validates data against a given schema, performs checks, and exports the validation results to a specified file in a given format.
Usage
check_and_export(
data,
schema,
file,
format,
hard_check = FALSE,
backseries = NULL,
name = deparse(substitute(data))
)Arguments
- data
The data to be validated.
- schema
The schema to validate against.
- file
The file path where the validation results will be exported.
- format
The format in which the validation results will be exported.
- hard_check
logical. Optional - FALSE by default. If TRUE, raises an error if there are any failed checks. Otherwise, raises a warning.
- backseries
A previous version of the data to check against (optional).
- name
validator name - defaults to the name of the dataframe object supplied to "data" (Optional). Must be a single character string.