Skip to content

Commit 00d027e

Browse files
committed
update snapshots
1 parent 9e790bc commit 00d027e

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

tests/testthat/_snaps/linear_reg.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
res <- fit_xy(hpc_basic, x = hpc[, num_pred], y = hpc$class, control = ctrl)
4747
Condition
4848
Error in `check_outcome()`:
49-
! For a regression model, the outcome should be <numeric>, not <factor>.
49+
! For a regression model, the outcome should be <numeric>, not a <factor> object.
5050

5151
---
5252

@@ -55,47 +55,47 @@
5555
control = ctrl)
5656
Condition
5757
Error in `check_outcome()`:
58-
! For a regression model, the outcome should be <numeric>, not <character>.
58+
! For a regression model, the outcome should be <numeric>, not a character vector.
5959

6060
---
6161

6262
Code
6363
res <- fit(hpc_basic, hpc_bad_form, data = hpc, control = ctrl)
6464
Condition
6565
Error in `check_outcome()`:
66-
! For a regression model, the outcome should be <numeric>, not <factor>.
66+
! For a regression model, the outcome should be <numeric>, not a <factor> object.
6767

6868
---
6969

7070
Code
7171
lm_form_catch <- fit(hpc_basic, hpc_bad_form, data = hpc, control = caught_ctrl)
7272
Condition
7373
Error in `check_outcome()`:
74-
! For a regression model, the outcome should be <numeric>, not <factor>.
74+
! For a regression model, the outcome should be <numeric>, not a <factor> object.
7575

7676
# glm execution
7777

7878
Code
7979
res <- fit_xy(hpc_glm, x = hpc[, num_pred], y = hpc$class, control = ctrl)
8080
Condition
8181
Error in `check_outcome()`:
82-
! For a regression model, the outcome should be <numeric>, not <factor>.
82+
! For a regression model, the outcome should be <numeric>, not a <factor> object.
8383

8484
---
8585

8686
Code
8787
res <- fit(hpc_glm, hpc_bad_form, data = hpc, control = ctrl)
8888
Condition
8989
Error in `check_outcome()`:
90-
! For a regression model, the outcome should be <numeric>, not <factor>.
90+
! For a regression model, the outcome should be <numeric>, not a <factor> object.
9191

9292
---
9393

9494
Code
9595
lm_form_catch <- fit(hpc_glm, hpc_bad_form, data = hpc, control = caught_ctrl)
9696
Condition
9797
Error in `check_outcome()`:
98-
! For a regression model, the outcome should be <numeric>, not <factor>.
98+
! For a regression model, the outcome should be <numeric>, not a <factor> object.
9999

100100
# newdata error trapping
101101

tests/testthat/_snaps/logistic_reg.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
res <- fit(lc_basic, funded_amnt ~ term, data = lending_club, control = ctrl)
5252
Condition
5353
Error in `check_outcome()`:
54-
! For a classification model, the outcome should be <factor>, not <integer>.
54+
! For a classification model, the outcome should be a <factor>, not an integer vector.
5555

5656
---
5757

@@ -60,7 +60,7 @@
6060
control = caught_ctrl)
6161
Condition
6262
Error in `check_outcome()`:
63-
! For a classification model, the outcome should be <factor>, not <integer>.
63+
! For a classification model, the outcome should be a <factor>, not an integer vector.
6464

6565
---
6666

@@ -69,15 +69,15 @@
6969
num_pred], y = lending_club$total_bal_il)
7070
Condition
7171
Error in `check_outcome()`:
72-
! For a classification model, the outcome should be <factor>, not <integer>.
72+
! For a classification model, the outcome should be a <factor>, not an integer vector.
7373

7474
# liblinear execution
7575

7676
Code
7777
res <- fit(ll_basic, funded_amnt ~ term, data = lending_club, control = ctrl)
7878
Condition
7979
Error in `check_outcome()`:
80-
! For a classification model, the outcome should be <factor>, not <integer>.
80+
! For a classification model, the outcome should be a <factor>, not an integer vector.
8181

8282
---
8383

@@ -86,7 +86,7 @@
8686
control = caught_ctrl)
8787
Condition
8888
Error in `check_outcome()`:
89-
! For a classification model, the outcome should be <factor>, not <integer>.
89+
! For a classification model, the outcome should be a <factor>, not an integer vector.
9090

9191
---
9292

@@ -95,7 +95,7 @@
9595
num_pred], y = lending_club$total_bal_il)
9696
Condition
9797
Error in `check_outcome()`:
98-
! For a classification model, the outcome should be <factor>, not <integer>.
98+
! For a classification model, the outcome should be a <factor>, not an integer vector.
9999

100100
# check_args() works
101101

tests/testthat/_snaps/misc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,5 @@
217217
check_outcome(1:2, cens_spec)
218218
Condition
219219
Error in `check_outcome()`:
220-
! For a censored regression model, the outcome should be <Surv>, not <integer>.
220+
! For a censored regression model, the outcome should be a <Surv> object, not an integer vector.
221221

tests/testthat/_snaps/predict_formats.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class = class == "VF"))
1515
Condition
1616
Error in `check_outcome()`:
17-
! For a classification model, the outcome should be <factor>, not <logical>.
17+
! For a classification model, the outcome should be a <factor>, not a logical vector.
1818

1919
---
2020

@@ -23,7 +23,7 @@
2323
class = ifelse(class == "VF", 1, 0)))
2424
Condition
2525
Error in `check_outcome()`:
26-
! For a classification model, the outcome should be <factor>, not <numeric>.
26+
! For a classification model, the outcome should be a <factor>, not a double vector.
2727

2828
---
2929

@@ -32,5 +32,5 @@
3232
dplyr::mutate(class = as.character(class)))
3333
Condition
3434
Error in `check_outcome()`:
35-
! For a classification model, the outcome should be <factor>, not <character>.
35+
! For a classification model, the outcome should be a <factor>, not a character vector.
3636

tests/testthat/_snaps/rand_forest_ranger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
res <- fit(lc_ranger, funded_amnt ~ Class + term, data = lending_club, control = ctrl)
55
Condition
66
Error in `check_outcome()`:
7-
! For a classification model, the outcome should be <factor>, not <integer>.
7+
! For a classification model, the outcome should be a <factor>, not an integer vector.
88

99
# ranger classification probabilities
1010

0 commit comments

Comments
 (0)