Running examples in ‘workflows-Ex.R’ failed
The error most likely occurred in:

> ### Name: add_model
> ### Title: Add a model to a workflow
> ### Aliases: add_model remove_model update_model
> 
> ### ** Examples
> 
> library(parsnip)
> 
> lm_model <- linear_reg()
> lm_model <- set_engine(lm_model, "lm")
> 
> regularized_model <- set_engine(lm_model, "glmnet")
> 
> workflow <- workflow()
> workflow <- add_model(workflow, lm_model)
> workflow
══ Workflow ════════════════════════════════════════════════════════════════════
Preprocessor: None
Model: linear_reg()

── Model ───────────────────────────────────────────────────────────────────────
Linear Regression Model Specification (regression)

Computational engine: lm 

> 
> workflow <- add_formula(workflow, mpg ~ .)
> workflow
══ Workflow ════════════════════════════════════════════════════════════════════
Preprocessor: Formula
Model: linear_reg()

── Preprocessor ────────────────────────────────────────────────────────────────
mpg ~ .

── Model ───────────────────────────────────────────────────────────────────────
Linear Regression Model Specification (regression)

Computational engine: lm 

> 
> remove_model(workflow)
══ Workflow ════════════════════════════════════════════════════════════════════
Preprocessor: Formula
Model: None

── Preprocessor ────────────────────────────────────────────────────────────────
mpg ~ .
> 
> fitted <- fit(workflow, data = mtcars)
Error: `x` cannot be a vector.
Backtrace:
     █
  1. ├─generics::fit(workflow, data = mtcars)
  2. └─workflows:::fit.workflow(workflow, data = mtcars)
  3.   └─workflows::.fit_model(workflow, control)
  4.     ├─generics::fit(action_model, workflow = workflow, control = control)
  5.     └─workflows:::fit.action_model(...)
  6.       └─workflows:::fit_from_xy(spec, mold, control_parsnip)
  7.         ├─generics::fit_xy(...)
  8.         └─parsnip::fit_xy.model_spec(...)
  9.           └─parsnip:::xy_form(...)
 10.             └─parsnip::.convert_xy_to_form_fit(...)
Execution halted