check_spec: Check file specification

View source: R/check_spec.R

check_specR Documentation

Check file specification

Description

check_spec() will check a list of data against an expected file specification.

Usage

check_spec(
  table_list,
  table_spec,
  type_label = "Import File",
  .silent = TRUE,
  .include_table_type = NULL
)

Arguments

table_list

A list of data frames to check against the spec.

table_spec

The table spec. See details.

type_label

A character label for the check message.

.silent

Logical whether or not to print results to the console.

.include_table_type

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.

Value

A list containing the results of the check.

See Also

Other Data Spec Functions: add_missing_spec_cols(), add_missing_spec_tables(), assert_case(), change_case_from_spec(), coerce_to_spec(), data_case()


Technomics/costmisc documentation built on Nov. 12, 2024, 8:05 a.m.