Create RMarkdown headers and code chunks in purrr

Yes knit_child() is a good solution.

If you want to go further, have a look in the R Markdown cookbook. There are seveal chapter with recipes to help with such task.

Hope it helps

1 Like