You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* function to get prediction columns
* forgotten pkgdown entry
* also, bump version number
* fix for workflows
* Apply suggestions from code review
Co-authored-by: Emil Hvitfeldt <emil.hvitfeldt@posit.co>
---------
Co-authored-by: Emil Hvitfeldt <emil.hvitfeldt@posit.co>
Copy file name to clipboardExpand all lines: tests/testthat/_snaps/misc.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -227,3 +227,19 @@
227
227
Error in `check_outcome()`:
228
228
! For a censored regression model, the outcome should be a <Surv> object, not an integer vector.
229
229
230
+
# obtaining prediction columns
231
+
232
+
Code
233
+
.get_prediction_column_names(1)
234
+
Condition
235
+
Error in `.get_prediction_column_names()`:
236
+
! `x` should be an object with class <model_fit> or <workflow>, not a number.
237
+
238
+
---
239
+
240
+
Code
241
+
.get_prediction_column_names(unk_fit)
242
+
Condition
243
+
Error in `.get_prediction_column_names()`:
244
+
! Prediction information could not be found for this `linear_reg()` with engine "lm" and mode "Depeche". Does a parsnip extension package need to be loaded?
0 commit comments