check_spec() will check a list of data against an expected file specification.
check_spec(
table_list,
table_spec,
type_label = "Import File",
.silent = TRUE,
.include_table_type = NULL
)A list of data frames to check against the spec.
The table spec. See details.
A character label for the check message.
Logical whether or not to print results to the console.
Character vector of 'type' values from the spec
'tables' to include in the check. Useful to remove certain table types, such
as enumerations. If NULL, all tables are included.
A list containing the results of the check.
Other Data Spec Functions:
add_missing_spec_cols(),
add_missing_spec_tables(),
assert_case(),
change_case_from_spec(),
coerce_to_spec(),
data_case()