subtargets | R Documentation |
List the sub-targets of a dynamic target.
subtargets(
target = NULL,
character_only = FALSE,
cache = drake::drake_cache(path = path),
path = NULL
)
target |
Character string or symbol, depending on |
character_only |
Logical, whether |
cache |
drake cache. See |
path |
Path to a |
Character vector of sub-target names
get_trace()
, read_trace()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.