Skip to content

Commit

Permalink
Merge pull request #1406 from tidymodels/update-snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt authored Jan 10, 2025
2 parents e738967 + 0f5124e commit 76c651b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Imports:
generics (>= 0.1.2),
glue,
gower,
hardhat (>= 1.4.0),
hardhat (>= 1.4.0.9000),
ipred (>= 0.9-12),
lifecycle (>= 1.0.3),
lubridate (>= 1.8.0),
Expand Down Expand Up @@ -65,7 +65,8 @@ Suggests:
workflows,
xml2
Remotes:
r-lib/sparsevctrs
r-lib/sparsevctrs,
tidymodels/hardhat
VignetteBuilder:
knitr
RdMacros:
Expand Down
12 changes: 6 additions & 6 deletions tests/testthat/_snaps/colcheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,24 @@
Code
predict(role_wts_fit, head(Chicago) %>% select(-date))
Condition
Error in `validate_column_names()`:
! The following required columns are missing: 'date'.
Error in `hardhat::forge()`:
! The required column "date" is missing.

---

Code
predict(rm_fit, Chicago %>% select(-date))
Condition
Error in `validate_column_names()`:
! The following required columns are missing: 'date'.
Error in `hardhat::forge()`:
! The required column "date" is missing.

---

Code
predict(rm_fit, Chicago %>% select(-date))
Condition
Error in `validate_column_names()`:
! The following required columns are missing: 'date'.
Error in `hardhat::forge()`:
! The required column "date" is missing.

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
bake(rec, new_data = sacr_te, composition = "matrix")
Condition
Error in `hardhat::recompose()`:
Error in `bake()`:
! `data` must only contain numeric columns.
i These columns aren't numeric: "beds" and "type".

Expand All @@ -12,7 +12,7 @@
Code
juice(rec, composition = "matrix")
Condition
Error in `hardhat::recompose()`:
Error in `juice()`:
! `data` must only contain numeric columns.
i These columns aren't numeric: "beds" and "type".

6 changes: 3 additions & 3 deletions tests/testthat/_snaps/sparsity.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Code
bake(rec, new_data = sacr_te, composition = "dgCMatrix")
Condition
Error in `hardhat::recompose()`:
Error in `bake()`:
! `data` must only contain numeric columns.
i These columns aren't numeric: "beds" and "type".

Expand All @@ -12,7 +12,7 @@
Code
juice(rec, composition = "dgCMatrix")
Condition
Error in `hardhat::recompose()`:
Error in `juice()`:
! `data` must only contain numeric columns.
i These columns aren't numeric: "beds" and "type".

Expand All @@ -21,7 +21,7 @@
Code
recipe(~., data = ames) %>% prep() %>% bake(new_data = NULL, composition = "dgCMatrix")
Condition
Error in `hardhat::recompose()`:
Error in `juice()`:
! `data` must only contain numeric columns.
i These columns aren't numeric: "MS_SubClass", "MS_Zoning", "Street", "Alley", "Lot_Shape", "Land_Contour", "Utilities", "Lot_Config", "Land_Slope", "Neighborhood", "Condition_1", "Condition_2", "Bldg_Type", "House_Style", "Overall_Cond", "Roof_Style", "Roof_Matl", "Exterior_1st", ..., "Sale_Type", and "Sale_Condition".

0 comments on commit 76c651b

Please sign in to comment.