Skip to content

check_pred_type_dots() needs to evaluate bad_args in error message #1256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hfrick opened this issue Feb 13, 2025 · 0 comments
Open

check_pred_type_dots() needs to evaluate bad_args in error message #1256

hfrick opened this issue Feb 13, 2025 · 0 comments

Comments

@hfrick
Copy link
Member

hfrick commented Feb 13, 2025

library(parsnip)

linear_reg() %>% 
  fit(mpg ~ ., data = mtcars) %>% 
  predict(type = "quantile", new_data = mtcars, quantile = c(0.2, 0.8))
#> Error in `predict()`:
#> ! The ellipses are not used to pass args to the model function's predict
#>   function. These arguments cannot be used: "bad_args"

Created on 2025-02-13 with reprex v2.1.1

@hfrick hfrick changed the title check_pred_type_dots() needs to evaluate bad_args in error mesasge check_pred_type_dots() needs to evaluate bad_args in error message Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant