Skip to contents

Assert that a spec_ir object passes all schema and statistical checks

Usage

assert_valid_spec_ir(spec)

Arguments

spec

A spec_ir object.

Value

Invisibly returns spec if valid; otherwise aborts with formatted diagnostics.

Examples

spec <- assert_valid_spec_ir(new_spec_ir())
spec$design_type
#> [1] "monte_carlo_lm"