Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/pre-action-case-weights.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
predict(wf, df)
Condition
Error in `validate_column_names()`:
! The following required columns are missing: 'w'.
! The required column "w" is missing.

# case weights + recipe requires extra roles at predict time by default

Code
predict(wf, df)
Condition
Error in `validate_column_names()`:
! The following required columns are missing: 'w'.
! The required column "w" is missing.

# case weights + recipe doesn't allow the recipe to drop the case weights column

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test_that("can compute required packages of a workflow - recipes", {
mod <- parsnip::linear_reg()
mod <- parsnip::set_engine(mod, "lm")

step <- recipes::step("workflows_test")
step <- recipes::step("workflows_test", trained = FALSE, id = "", skip = FALSE, role = NA)

rec <- recipes::recipe(mpg ~ cyl, mtcars)
rec <- recipes::add_step(rec, step)
Expand Down