Skip to contents

Writes the centralized model, ordered preprocessing and DA steps, and any bake configurations using the non-executable dar-recipe JSON schema.

Usage

export_steps(rec, file_name)

Arguments

rec

A Recipe() or PrepRecipe() object.

file_name

Output path.

Value

file_name, invisibly.

Examples

data(metaHIV_phy)
rec <- recipe(metaHIV_phy) |>
  add_model(~ RiskGroup2, targets = "RiskGroup2", tax_level = "Species") |>
  step_filter_by_prevalence(threshold = 0.1)
path <- tempfile(fileext = ".json")
export_steps(rec, path)