Description Usage Arguments Value Examples
Transform a stageRunnerNode according to a functional.
1 | stageRunnerNode_transform(transformation)
|
transformation |
function. An arity-1 function which takes the
|
The transformed callable.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
increment <- 1
adder <- function(x) x + increment
node <- stageRunnerNode$new(function(e) print(adder(1)))
node$transform(function(fn) {
environment(fn)$increment <- environment(fn)$increment + 1; fn
})
node$run() # Prints 3, rather than 2
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.