Performs structural checks on a cr_experiment. Called
automatically by cr_build_experiment() but can also be used to
verify that manual modifications have not broken the object.
Usage
cr_validate_experiment(x, call = rlang::caller_env())Details
The optional unit_var, batch_vars, provenance and set_aside
slots are checked only when they are present, so that objects built by
earlier versions still validate.
See also
Other constructors:
cr_build_experiment(),
cr_dataset(),
cr_design()