
Validate and Assert valid table structure (Experimental).
Source:R/validate_table_struct.R
validate_table_struct.RdValidate and Assert valid table structure (Experimental).
Arguments
- tt
-
TableTreeA
TableTree(rtables-built table) is considered degenerate ifit contains no subtables or data rows (content rows do not count)
it contains a subtable which is degenerate by the criterion above
validate_table_structassesses whethertthas a valid (non-degenerate) structure.assert_valid_tableasserts a table must have a valid structure, and throws an informative error (the default) or warning (ifwarn_onlyisTRUE) if the table is degenerate (has invalid structure or contains one or more invalid substructures - warn_only
logical(1). Should a warning be thrown instead of an error? Defaults to
FALSE
Value
for validate_table_struct a logical value indicating valid structure;
assert_valid_table is called for its side-effect of throwing an error
or warning for degenerate tables.