Skip to content

tidyselect doesn't work with step_interact() #1299

@EmilHvitfeldt

Description

@EmilHvitfeldt
library(tidymodels)

recipe(mpg ~ ., data = mtcars) %>% 
  step_interact(terms = starts_with("dis")) %>% 
  prep() %>% 
  bake(new_data = NULL)
#> Error in `step_interact()`:
#> Caused by error:
#> ! `starts_with()` must be used within a *selecting* function.
#> ℹ See <https://tidyselect.r-lib.org/reference/faq-selection-context.html> for
#>   details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions