blueprint() objects store custom bpstep objects in the "extra_steps" element. This function adds a new step to that element.

bp_add_bpstep(bp, step)

Arguments

bp

A blueprint

step

A bpstep object

Examples

if (FALSE) {
  # Based on the codebook export step
  step <- bpstep(
    step = "export_codebook",
    bp = bp,
    payload = bpstep_payload(
      target_name = blueprint_codebook_name(bp),
      target_command = codebook_export_call(bp),
      format = "file",
      ...
    )
  )

  bp_add_bpstep(
    bp,
    step
  )
}