Skip to content

[help] Using tar_combine() for a nested static pipeline #176

Closed Answered by wlandau
ginolhac asked this question in Help
Discussion options

You must be logged in to vote

You're looking for this graph, right?

If so, it may help to generate the tar_combine() target separately just using the pre-mapped estim targets:

library(targets)
library(tarchetypes)

inner <- tar_map(
  values = list(sim = c("A", "B")),
  tar_target(
    estim,
    paste(distrib, tar_name()),
  )
)

combine <- tar_combine(combi, inner, command = paste(!!!.x))

tar_map(
  values = list(model = c("mod_1", "mod_2")),
  tar_target(distrib, tar_name()),
  inner,
  combine
)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ginolhac
Comment options

Answer selected by ginolhac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants