Skip to content
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

tidyselect doesn't work with step_interact() #1299

Closed
EmilHvitfeldt opened this issue Apr 26, 2024 · 1 comment · Fixed by #1340
Closed

tidyselect doesn't work with step_interact() #1299

EmilHvitfeldt opened this issue Apr 26, 2024 · 1 comment · Fixed by #1340
Labels
bug an unexpected problem or unintended behavior

Comments

@EmilHvitfeldt
Copy link
Member

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.
@EmilHvitfeldt EmilHvitfeldt added the bug an unexpected problem or unintended behavior label Apr 26, 2024
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant