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.