Functions to define stages and their constitutent steps. The macros combine several steps and assign them to relevant stages.
get_stage()
returns a TicStage
object for a stage given by name.
This function only works when called by load_from_file()
.
add_step()
adds a step to a stage, see step_hello_world()
and the links therein for available steps.
add_code_step()
is a shortcut for add_step(step_run_code(...))
.
get_stage(name)add_step(stage, step)
add_code_step(stage, call = NULL, prepare_call = NULL)
[string]
The name for the stage.
[TicStage]
A TicStage
object as returned by get_stage()
.
[function]
An object of class TicStep, usually created by functions
with the step_
prefix like step_hello_world()
.
[call]
An arbitrary R expression executed during the stage to which this step is
added.
The default is useful if you only pass prepare_call
.
[call]
An optional arbitrary R expression executed during preparation.