tidymodels / parsnip

A tidy unified interface to models
https://parsnip.tidymodels.org
Other
590 stars 88 forks source link

unhelpful error if engine is miss-specified for extension packages #1110

Open EmilHvitfeldt opened 5 months ago

EmilHvitfeldt commented 5 months ago

gml instead of glm

library(poissonreg)
#> Loading required package: parsnip

spec <- poisson_reg() %>% 
  set_engine("gml") %>%
  set_mode("regression")

fit(spec, gear ~ ., data = mtcars)
#> Error in `fit()`:
#> ! formula_ is unknown.

Created on 2024-04-09 with reprex v2.1.0