Skip to content

Commit 645a2fc

Browse files
committed
regenerate snapshots to resolve merge conflicts
1 parent dbe666f commit 645a2fc

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

tests/testthat/_snaps/sparsevctrs.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Code
44
xgb_fit <- fit(spec, avg_price_per_room ~ ., data = hotel_data)
55
Condition
6-
Error in `.convert_form_to_xy_fit()`:
6+
Error in `fit()`:
77
! Sparse data cannot be used with formula interface. Please use `fit_xy()` instead.
88

99
# sparse tibble can be passed to `fit() - unsupported
@@ -19,7 +19,7 @@
1919
Code
2020
xgb_fit <- fit(spec, avg_price_per_room ~ ., data = hotel_data)
2121
Condition
22-
Error in `.convert_form_to_xy_fit()`:
22+
Error in `fit()`:
2323
! Sparse data cannot be used with formula interface. Please use `fit_xy()` instead.
2424

2525
# sparse matrix can be passed to `fit() - unsupported
@@ -67,7 +67,7 @@
6767
Code
6868
xgb_fit <- fit(spec, avg_price_per_room ~ ., data = hotel_data)
6969
Condition
70-
Error in `.convert_form_to_xy_fit()`:
70+
Error in `fit()`:
7171
! Sparse data cannot be used with formula interface. Please use `fit_xy()` instead.
7272

7373
# to_sparse_data_frame() is used correctly
@@ -135,3 +135,11 @@
135135
Error in `predict.elnet()`:
136136
! data is sparse
137137

138+
# fit() errors if sparse matrix has no colnames
139+
140+
Code
141+
fit(spec, avg_price_per_room ~ ., data = hotel_data)
142+
Condition
143+
Error in `fit()`:
144+
! `x` must have column names.
145+

0 commit comments

Comments
 (0)