-
DescriptionI've been using a purr loop in R (based on this blog: https://damien-datasci-blog.netlify.app/post/2022-01-06-generating-multiple-pdf-at-once-a-use-case-of-rmarkdown-render-in-a-purrr-loop/): purrr::walk( It generates a set of multiple markdown documents at once based on a markdown template where the data for each is filled according to a subset of the dataset (1 of the columns), which is set as a parameter. I'm trying to adapt this to quarto but can't work out the syntax for quarto_render. Does anyone have some advice on this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It should work quite similarly unless there is an issue with Quarto R package (https://github.com/quarto-dev/quarto-r) Only thing to whatch out for is that Also in your example you are rendering from a .Rmd to a .Rmd, so I am not sure which format your are using in rmarkdown. A full reproducible example would help.
For this, you may want to consider simple template tool that do not require a render at all. See brew or whisker or even Depending on what you want to do, Hope this helps |
Beta Was this translation helpful? Give feedback.
Apologies, I'm new to asking questions here. I did manage to resolve the issue. The .yml file has to be created after the qmd files have been rendered, otherwise it tries to use the .yml to format them, which causes the error. Thank you anyway for your time!