subtargets {drake} | R Documentation |
List sub-targets
Description
List the sub-targets of a dynamic target.
Usage
subtargets(
target = NULL,
character_only = FALSE,
cache = drake::drake_cache(path = path),
path = NULL
)
Arguments
target |
Character string or symbol, depending on |
character_only |
Logical, whether |
cache |
drake cache. See |
path |
Path to a |
Value
Character vector of sub-target names
See Also
Examples
## Not run:
isolate_example("dynamic branching", {
plan <- drake_plan(
w = c("a", "a", "b", "b"),
x = seq_len(4),
y = target(x + 1, dynamic = map(x)),
z = target(sum(x) + sum(y), dynamic = group(x, y, .by = w))
)
make(plan)
subtargets(y)
subtargets(z)
readd(x)
readd(y)
readd(z)
})
## End(Not run)
[Package drake version 7.13.10 Index]