Skip to content

Commit e322109

Browse files
committed
the snapshots should be created without glmnet installed
1 parent 267de89 commit e322109

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/testthat/_snaps/linear_reg.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,33 +145,33 @@
145145
linear_reg(penalty = 1) %>% set_engine("glmnet", family = poisson) %>% fit(mpg ~
146146
., data = mtcars)
147147
Condition
148-
Error in `linear_reg()`:
149-
! A Poisson family was requested for `linear_reg()`. Please use `poisson_reg()` and the engines in the poissonreg package.
148+
Error in `fit()`:
149+
! Please install the glmnet package to use this engine.
150150

151151
---
152152

153153
Code
154154
linear_reg(penalty = 1) %>% set_engine("glmnet", family = stats::poisson) %>%
155155
fit(mpg ~ ., data = mtcars)
156156
Condition
157-
Error in `linear_reg()`:
158-
! A Poisson family was requested for `linear_reg()`. Please use `poisson_reg()` and the engines in the poissonreg package.
157+
Error in `fit()`:
158+
! Please install the glmnet package to use this engine.
159159

160160
---
161161

162162
Code
163163
linear_reg(penalty = 1) %>% set_engine("glmnet", family = stats::poisson()) %>%
164164
fit(mpg ~ ., data = mtcars)
165165
Condition
166-
Error in `linear_reg()`:
167-
! A Poisson family was requested for `linear_reg()`. Please use `poisson_reg()` and the engines in the poissonreg package.
166+
Error in `fit()`:
167+
! Please install the glmnet package to use this engine.
168168

169169
---
170170

171171
Code
172172
linear_reg(penalty = 1) %>% set_engine("glmnet", family = "poisson") %>% fit(
173173
mpg ~ ., data = mtcars)
174174
Condition
175-
Error in `linear_reg()`:
176-
! A Poisson family was requested for `linear_reg()`. Please use `poisson_reg()` and the engines in the poissonreg package.
175+
Error in `fit()`:
176+
! Please install the glmnet package to use this engine.
177177

0 commit comments

Comments
 (0)