Workflow Target

tar_workflow(name, ..., tar_args = list())

Arguments

name

Name of target

...

Functions piped to from workflows::workflow() such as workflows::add_model(). See example.

tar_args

Arguments passed to tar_target.

Value

A tar_target object.

Examples

if (FALSE) { list( # `x` is some template data frame tar_recipe( make_recipe, V1 ~ V2 + V3, data = x ), # Creating a model tar_model( make_model_rf, rand_forest, set_mode("regression"), set_engine("ranger"), tar_args = list(format = "qs") ), # Creating the workflow tar_workflow( make_workflow_rf, workflows::add_model(make_model_rf), workflows::add_recipe(make_recipe) ) ) }