For example, if our tree structure is given by
list(a = list(b = 1, c = 2))
then calling find('a/b') on the root node will return 1.
treeSkeleton__find(key)
| key | character. The key to find in the given tree structure,
whether nodes are named by their name in the |
|---|
the subtree or terminal node with the given key.
not_run({ sr <- stageRunner$new(new.env(), list(a = list(force, list(b = function(x) x + 1)))) stagerunner:::treeSkeleton$new(sr)$find('a/2/b') # function(x) x + 1 })