Skip to content

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

@hfrick

Description

@hfrick
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    tidy-dev-day 🤓Tidyverse Developer Day rstd.io/tidy-dev-day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions