addPipelineStep: addPipelineStep

Description Usage Arguments Value See Also Examples

View source: R/PipelineDefinition.R

Description

Add a step to an existing PipelineDefinition

Usage

1
addPipelineStep(object, name, after = NULL, slots = list())

Arguments

object

A PipelineDefinition

name

The name of the step to add

after

The name of the step after which to add the new step. If NULL, will add the step at the beginning of the pipeline.

slots

A optional named list with slots to fill for that step (i.e. 'functions', 'evaluation', 'aggregation', 'descriptions' - will be parsed)

Value

A PipelineDefinition

See Also

PipelineDefinition, PipelineDefinition-methods

Examples

1
2
3
4
5
pd <- mockPipeline()
pd
pd <- addPipelineStep(pd, name="newstep", after="step1", 
                      slots=list(description="Step that does nothing..."))
pd

plger/pipeComp documentation built on Nov. 2, 2021, 8:40 p.m.