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

pipeComp documentation built on Nov. 8, 2020, 7:35 p.m.