-
Help
DescriptionI asked this question already on stack overflow (https://stackoverflow.com/questions/78582591/branching-i-am-at-a-loss) but only afterwards I was posted to here, which seems to be the best site to ask the question. So - here is the question: I need branching for my target pipeline (at least I think so) My definition for the target pipeline looks as follows:
Now I want to run this pipeline for several input files (initially 4) and new ones will be added over time. If I understand branching correctly (https://books.ropensci.org/targets/dynamic.html) dynamic branching with the To complicate things, the quarto document depends on the output from all previous targets mentioned, but not the ones based on other files, so it has e.g. I am at a loss here - how can I achieve this without repeating the same code block again and again? I was pointed out to me by Eric Scott that the function
which works and two targets If I add
I get an error
but running
works as expected? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello, tar_target(figure_top_journ_data, plot_top_journals_data(bibliography), pattern = map(files)) should be tar_target(figure_top_journ_data, plot_top_journals_data(bibliography), pattern = map(bibliography)) |
Beta Was this translation helpful? Give feedback.
Hello,
the map pattern should be following the correct targets. So this part
should be