tests/testthat/_snaps/workflow.md

workflow must be the first argument when adding actions

Code
  add_formula(1, mpg ~ cyl)
Condition
  Error in `add_formula()`:
  ! `x` must be a workflow, not a <numeric>.
Code
  add_recipe(1, rec)
Condition
  Error in `add_recipe()`:
  ! `x` must be a workflow, not a <numeric>.
Code
  add_model(1, mod)
Condition
  Error in `add_model()`:
  ! `x` must be a workflow, not a <numeric>.

model spec is validated

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

preprocessor is validated

Code
  workflow(preprocessor = 1)
Condition
  Error in `workflow()`:
  ! `preprocessor` must be a formula, recipe, or a set of workflow variables.

constructor validates input

Code
  new_workflow(pre = 1)
Condition
  Error in `new_workflow()`:
  ! `pre` must be a `stage`.
Code
  new_workflow(fit = 1)
Condition
  Error in `new_workflow()`:
  ! `fit` must be a `stage`.
Code
  new_workflow(post = 1)
Condition
  Error in `new_workflow()`:
  ! `post` must be a `stage`.
Code
  new_workflow(trained = 1)
Condition
  Error in `new_workflow()`:
  ! `trained` must be a single logical value.

input must be a workflow

`x` must be a workflow, not a <numeric>.


Try the workflows package in your browser

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

workflows documentation built on April 4, 2025, 4:56 a.m.