tests/testthat/_snaps/stringsAsFactors.md

strings_as_factors = FALSE

Code
  rec1_as_str <- bake(rec1, new_data = as_str)
Condition
  Warning in `bake()`:
  ! There were 2 columns that were factors when the recipe was prepped:
  * `fact` and `ord`
  i This may cause errors when processing new data.

strings_as_factors = TRUE

Code
  rec2_as_str <- bake(rec2, new_data = as_str)
Condition
  Warning in `bake()`:
  ! There were 2 columns that were factors when the recipe was prepped:
  * `fact` and `ord`
  i This may cause errors when processing new data.


tidymodels/recipes documentation built on Jan. 25, 2025, 7:30 a.m.