User-friendly wrapper to validate design with error messages
validate_or_reconstruct(
data,
require_class = FALSE,
allow_choices = TRUE,
context = "this function"
)Validated/reconstructed data, or stops with error
Input data
Whether to require proper class
Whether to allow cbc_choices objects
Character describing where this is being called from (for error messages)