Workflow Automation
Task Sequence
Select Ordered Steps
Automation scripts usually run a small set of tasks in a fixed order.
Program
Play the script to change how many steps are included in the workflow.
task_sequence.R
step_count <-
steps <- c("load", "clean", "summarize", "publish")
selected <- steps[seq_len(step_count)]
label <- paste(selected, collapse = " > ")
cat(label, "\n", sep = "")
step_count <-
steps <- c("load", "clean", "summarize", "publish")
selected <- steps[seq_len(step_count)]
label <- paste(selected, collapse = " > ")
cat(label, "\n", sep = "")
step_count <-
steps <- c("load", "clean", "summarize", "publish")
selected <- steps[seq_len(step_count)]
label <- paste(selected, collapse = " > ")
cat(label, "\n", sep = "")
ordered steps
A character vector can model the ordered tasks in a workflow.
prefix
`seq_len(step_count)` selects the first tasks to run.
workflow label
Joining selected tasks makes the planned automation order visible.