This is a purely developer facing function, that is only used if you are
creating a completely new blueprint inheriting only from
not from one of the more common:
A preprocessing blueprint.
Not used. Required for extensibility.
The preprocessed result, as a named list.
mold() has different interfaces (like XY and formula),
which require different arguments (
corresponding blueprints also have different arguments for the
blueprint$mold$process() functions. The sole
run_mold() is simply to call these two functions with the right
The only time you need to implement a method for
run_mold() is if you
are creating a
new_blueprint() that does not follow one of the three core
blueprint types. In that special case, create a method for
your blueprint type, and pass through whatever arguments are necessary to call
your blueprint specific
If you go this route, you will also need to create a
mold() method if
is not a data frame / matrix, recipe, or formula. If
x is one of
those types, then
run_mold() will be called for you by the
mold() method, you just have to supply the
for your blueprint.