Skip to content

Do we have to store "mapped" targets together in the same targets chunk with the Target Markdown #607

Closed Answered by wlandau
33Vito asked this question in Help
Discussion options

You must be logged in to vote

This is a limitation. Interactive mode deliberately runs only the part of the pipeline inside the chunk, independently of other chunks. This helps write the R Markdown modularly and break down the pipeline into small pieces that are quick to run in a testing/prototyping scenario. The tradeoff, as you have seen, is that a chunk might not include upstream targets that dynamic targets depend on for branching. I have thought about this, and I do not think there is a good solution from a development point of view. It would either require a {targets} code chunk to be aware of other {targets} code chunks, or it would require allowing dynamic targets to map over non-targets, neither of which is f…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@33Vito
Comment options

@wlandau
Comment options

@33Vito
Comment options

Answer selected by 33Vito
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