![[Experimental]](figures/lifecycle-experimental.svg?package=rtables&version=0.6.12)
A TableTree
(rtables
-built table) is considered degenerate if:
It contains no subtables or data rows (content rows do not count).
It contains a subtable which is degenerate by the criterion above.
validate_table_struct
assesses whether tt
has a valid (non-degenerate) structure.
assert_valid_table
asserts a table must have a valid structure, and throws an informative error (the default) or
warning (if warn_only
is TRUE
) if the table is degenerate (has invalid structure or contains one or more
invalid substructures.