tests/testthat/_snaps/fit-action-model.md

model is validated

Code
  add_model(workflow(), 1)
Condition
  Error in `add_model()`:
  ! `spec` must be a `model_spec`.

model must contain a known mode (#160)

Code
  add_model(workflow, mod)
Condition
  Error in `add_model()`:
  ! `spec` must have a known mode.
  i Set the mode of `spec` by using `parsnip::set_mode()` or by setting the mode directly in the parsnip specification function.

prompt on spec without a loaded implementation (#174)

Code
  add_model(workflow, mod)
Condition
  Error in `add_model()`:
  ! parsnip could not locate an implementation for `bag_tree` regression model specifications.
  i The parsnip extension package baguette implements support for this specification.
  i Please install (if needed) and load to continue.
Code
  workflow(spec = mod)
Condition
  Error in `add_model()`:
  ! parsnip could not locate an implementation for `bag_tree` regression model specifications.
  i The parsnip extension package baguette implements support for this specification.
  i Please install (if needed) and load to continue.

cannot add two models

Code
  add_model(workflow, mod)
Condition
  Error in `add_model()`:
  ! A `model` action has already been added to this workflow.


Try the workflows package in your browser

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

workflows documentation built on May 29, 2024, 3:57 a.m.