Skip to content
Prev 369530 / 398503 Next

odfWeave - A loop of the "same" data

I do this regularly with knitr [1]. I have never used odfWeave, but would imagine that similar principles apply. 

If you make a child document that assumes that the desired data are stored in one or more objects, then you can use a for loop in the master document that repeatedly extracts the desired subsets and puts them into the objects the child document expects them to be in, parses the child document, and then "cat"s the parsed results into the master document output.

[1] https://yihui.name/knitr/demo/child/