In case a model formula is required, the formula method can be used on a recipe to show what predictors and outcome(s) could be used.
Usage
# S3 method for class 'recipe'
formula(x, ...)
Examples
formula(recipe(Species + Sepal.Length ~ ., data = iris) %>% prep())
#> Species + Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width
#> <environment: 0x563713e0d188>
iris_rec <- recipe(Species ~ ., data = iris) %>%
step_center(all_numeric()) %>%
prep()
formula(iris_rec)
#> Species ~ Sepal.Length + Sepal.Width + Petal.Length + Petal.Width
#> <environment: 0x563714bb0b68>