Skip to contents

Print a banner to the console ahead of running a step in the workflow

Usage

show_workflow_banner(id, title, pad_width = NULL)

Arguments

id

A character string for the step id.

title

A character string which is the title of the step.

pad_width

The width to which to pad the title with blanks, unless it is NA in which case no padding will be done. Default: NA

Value

NULL (invisibly)

Examples

show_workflow_banner("1", "Step 1")
#> ────────────────────────────────────────────────────────────────────────────────
#> STEP 1
#> ┌───────────────────┐
#> │                   │
#> │   -> Step 1 ...   │
#> │                   │
#> └───────────────────┘
show_workflow_banner("1", "Step 1", 15)
#> ────────────────────────────────────────────────────────────────────────────────
#> STEP 1
#> ┌───────────────────────────┐
#> │                           │
#> │   -> Step 1 ...           │
#> │                           │
#> └───────────────────────────┘