|
3 | 3 | Code |
4 | 4 | set_mode(mtcars, "regression") |
5 | 5 | Condition |
6 | | - Error in `UseMethod()`: |
7 | | - ! no applicable method for 'set_mode' applied to an object of class "data.frame" |
| 6 | + Error in `set_mode()`: |
| 7 | + ! `set_mode()` expected a model specification to be supplied to the `object` argument, but received a(n) `data.frame` object. |
8 | 8 |
|
9 | 9 | --- |
10 | 10 |
|
11 | 11 | Code |
12 | 12 | set_args(mtcars, blah = "blah") |
13 | 13 | Condition |
14 | | - Error in `UseMethod()`: |
15 | | - ! no applicable method for 'set_args' applied to an object of class "data.frame" |
| 14 | + Error in `set_args()`: |
| 15 | + ! `set_args()` expected a model specification to be supplied to the `object` argument, but received a(n) `data.frame` object. |
| 16 | + |
| 17 | +--- |
| 18 | + |
| 19 | + Code |
| 20 | + bag_tree %>% set_mode("classification") |
| 21 | + Condition |
| 22 | + Error in `set_mode()`: |
| 23 | + ! `set_mode()` expected a model specification to be supplied to the `object` argument, but received a(n) `function` object. |
| 24 | + i Did you mistakenly pass `model_function` rather than `model_function()`? |
| 25 | + |
| 26 | +--- |
| 27 | + |
| 28 | + Code |
| 29 | + bag_tree %>% set_engine("rpart") |
| 30 | + Condition |
| 31 | + Error in `set_engine()`: |
| 32 | + ! `set_engine()` expected a model specification to be supplied to the `object` argument, but received a(n) `function` object. |
| 33 | + i Did you mistakenly pass `model_function` rather than `model_function()`? |
| 34 | + |
| 35 | +--- |
| 36 | + |
| 37 | + Code |
| 38 | + bag_tree %>% set_args(boop = "bop") |
| 39 | + Condition |
| 40 | + Error in `set_args()`: |
| 41 | + ! `set_args()` expected a model specification to be supplied to the `object` argument, but received a(n) `function` object. |
| 42 | + i Did you mistakenly pass `model_function` rather than `model_function()`? |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | + Code |
| 47 | + 1L %>% set_args(mode = "classification") |
| 48 | + Condition |
| 49 | + Error in `set_args()`: |
| 50 | + ! `set_args()` expected a model specification to be supplied to the `object` argument, but received a(n) `integer` object. |
| 51 | + |
| 52 | +--- |
| 53 | + |
| 54 | + Code |
| 55 | + bag_tree %>% set_mode("classification") |
| 56 | + Condition |
| 57 | + Error in `set_mode()`: |
| 58 | + ! `set_mode()` expected a model specification to be supplied to the `object` argument, but received a(n) `function` object. |
| 59 | + i Did you mistakenly pass `model_function` rather than `model_function()`? |
16 | 60 |
|
0 commit comments