Recipe objects used by Tidymodels sometimes become bloated due to quosures and saved factor levels. This function will strip all data from a recipe object except the data necessary to use bake.

This saves an enormous amount of disk space for certain complicated recipes that need to be saved and re-used.

axe_recipe(x)

Arguments

x

A prepped recipe object created by the recipe package.

Value

Recipe object from x but with environment and factor level data removed.