tests/testthat/_snaps/blueprint-formula-default.md

levels argument is validated

Code
  new_default_formula_blueprint(levels = 1)
Condition
  Error in `new_default_formula_blueprint()`:
  ! `levels` must be a list, not the number 1.
Code
  new_default_formula_blueprint(levels = list(1))
Condition
  Error in `new_default_formula_blueprint()`:
  ! `levels` must be fully named.
Code
  new_default_formula_blueprint(levels = list(a = 1))
Condition
  Error in `new_default_formula_blueprint()`:
  ! `levels` must only contain character vectors.


Try the hardhat package in your browser

Any scripts or data that you put into this service are public.

hardhat documentation built on April 4, 2025, 3:18 a.m.