validatePipeline: Validate all pipes in a pipeline

Description Usage Arguments Details Value See Also Examples

Description

This function checks that all pipes are valid, and returns FALSE if any are invalid.

Usage

1

Arguments

pipeline

A pipeline object

Details

A pipe is considered valid if its startComponent and endComponents values match the value of name components in the pipeline, and if its startOutput and endInput values match a named output or input in the corresponding component.

A warning is generated for each invalid pipe to help debug.

Value

logical, TRUE if pipeline passes all validity tests

See Also

pipeline, pipe

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## load a pipeline
pipel1 <-
    loadPipeline("simpleGraph",
                 system.file("extdata", "simpleGraph",
                             "pipeline.xml",
                             package = "conduit"))
## a valid pipeline
validatePipeline(pipel1)

## break a pipeline
pipel2 <- pipel1
pipel2$pipes[[1]]$start$output <- "veryWrongValue"
## and look, it's invalid!
validatePipeline(pipel2)

anhinton/conduit documentation built on May 10, 2019, 11:48 a.m.