-
Help
DescriptionSuppose I have the following
This would be translated in this However, I would like to have something like this: How can I achieve this without creating the subtars individually? (This is because in my real world application I have almost 20 subtargets and it is very important to check how each one is running individually) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To create that branching structure in the graph, you can use static branching. Please have a look at https://books.ropensci.org/targets/static.html. Example: library(targets)
library(tarchetypes)
list(
tar_target(
name = main_target,
command = "main_target"
),
tar_map(
tar_target(
name = subtarget,
command = paste(main_target, static_branch)
),
values = list(static_branch = c("static_branch_1", "static_branch_2")),
descriptions = NULL
)
) There is also dynamic branching, documented at https://books.ropensci.org/targets/dynamic.html |
Beta Was this translation helpful? Give feedback.
To create that branching structure in the graph, you can use static branching. Please have a look at https://books.ropensci.org/targets/static.html. Example:
There is also dynamic branching, documented at https://books.ropensci.org/targets/dynamic.html