stageRunnerNode_around: Wrap a stageRunnerNode callable with another callable.

Description Usage Arguments Value Examples

Description

Wrap a stageRunnerNode callable with another callable.

Usage

1

Arguments

other_node

stagerunner or stageRunnerNode.

Value

TRUE or FALSE according as the wrapping was successful.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
node1 <- stageRunnerNode(function(e) print(2))
node2 <- stageRunnerNode(function(e) { print(1); yield(); print(3); })
node1$around(node2)
node1$run() # Will print 1 2 3
# Notice the provided "yield" keyword, which allows calling the
# node that is being wrapped.

## End(Not run)

syberia/stagerunner documentation built on May 30, 2019, 10:41 p.m.