For example, list('data/one', 2)
would be converted to
list('data', list('one')), 2)
.
normalize_stage_keys(keys, stages, to = NULL, parent_key = "")
keys | a list. The keys to normalize. |
---|---|
stages | a list. The stages we're normalizing with respect to. |
to | an indexing parameter. If |
parent_key | character. A helper for sane recursive error handling.
For example, if we try to reference key |
a list. The format is nested logicals. For example, if stages
is
list(one = stageRunner$new(new.env(), list(subone = function(cx) 1)),
two = function(cx) 1)
then
normalize_stage_keys('one/subone')
would return
list(one = list(subone = TRUE), two = FALSE)
.
stageRunner__run
not_run({ stopifnot(identical(normalize_stage_keys("foo/bar", list(foo = list(bar = NULL, baz = NULL))), list(list(TRUE, FALSE)))) })