tests/testthat/_snaps/clean_names.md

bake method errors when needed non-standard role columns are missing

Code
  bake(trained, new_data = mtcars[, -3])
Condition
  Error in `step_clean_names()`:
  ! The following required column is missing from `new_data`: disp.

empty printing

Code
  rec
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  outcome:    1
  predictor: 10

  -- Operations 
  * Cleaning variable names for: <none>
Code
  rec
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  outcome:    1
  predictor: 10

  -- Training information 
  Training data contained 32 data points and no incomplete rows.

  -- Operations 
  * Cleaning variable names for: <none> | Trained

printing

Code
  print(rec)
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  predictor: 11

  -- Operations 
  * Cleaning variable names for: all_predictors()
Code
  prep(rec)
Message

  -- Recipe ----------------------------------------------------------------------

  -- Inputs 
  Number of variables by role
  predictor: 11

  -- Training information 
  Training data contained 32 data points and no incomplete rows.

  -- Operations 
  * Cleaning variable names for: mpg, cyl, disp, hp, drat, wt, ... | Trained


EmilHvitfeldt/textrecipes documentation built on June 10, 2025, 1:21 a.m.