Skip to content

Commit e8c77ed

Browse files
committed
update snapshots
1 parent 78ced33 commit e8c77ed

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

tests/testthat/_snaps/args_and_modes.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,39 @@
1212
decision_tree() %>% set_mode("regression") %>% set_engine("C5.0")
1313
Condition
1414
Error in `set_engine()`:
15-
x Available modes for engine C5.0 are:
16-
* "unknown" and "classification".
15+
! Available modes for engine C5.0 are: "unknown" and "classification".
1716

1817
---
1918

2019
Code
2120
decision_tree(mode = "regression", engine = "C5.0")
2221
Condition
2322
Error in `decision_tree()`:
24-
x Available modes for engine C5.0 are:
25-
* "unknown" and "classification".
23+
! Available modes for engine C5.0 are: "unknown" and "classification".
2624

2725
---
2826

2927
Code
3028
decision_tree() %>% set_engine("C5.0") %>% set_mode("regression")
3129
Condition
3230
Error in `set_mode()`:
33-
x Available modes for engine C5.0 are:
34-
* "unknown" and "classification".
31+
! Available modes for engine C5.0 are: "unknown" and "classification".
3532

3633
---
3734

3835
Code
3936
decision_tree(engine = NULL) %>% set_engine("C5.0") %>% set_mode("regression")
4037
Condition
4138
Error in `set_mode()`:
42-
x Available modes for engine C5.0 are:
43-
* "unknown" and "classification".
39+
! Available modes for engine C5.0 are: "unknown" and "classification".
4440

4541
---
4642

4743
Code
4844
decision_tree(engine = NULL) %>% set_mode("regression") %>% set_engine("C5.0")
4945
Condition
5046
Error in `set_engine()`:
51-
x Available modes for engine C5.0 are:
52-
* "unknown" and "classification".
47+
! Available modes for engine C5.0 are: "unknown" and "classification".
5348

5449
---
5550

@@ -65,8 +60,7 @@
6560
linear_reg() %>% set_mode()
6661
Condition
6762
Error in `set_mode()`:
68-
x Available modes for model type linear_reg are:
69-
* "unknown" and "regression".
63+
! Available modes for model type linear_reg are: "unknown" and "regression".
7064

7165
---
7266

tests/testthat/_snaps/svm_linear.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
predict(cls_form, hpc_no_m[ind, -5], type = "prob")
2222
Condition
2323
Error in `check_spec_pred_type()`:
24-
! No "prob" prediction method available for this model. Value for `type` should be one of: "class" and "raw".
24+
! No "prob" prediction method available for this model. `type` should be one of: "class" and "raw".
2525

2626
---
2727

2828
Code
2929
predict(cls_xy_form, hpc_no_m[ind, -5], type = "prob")
3030
Condition
3131
Error in `check_spec_pred_type()`:
32-
! No "prob" prediction method available for this model. Value for `type` should be one of: "class" and "raw".
32+
! No "prob" prediction method available for this model. `type` should be one of: "class" and "raw".
3333

0 commit comments

Comments
 (0)