Render multiple files
Arguments
- data
A tibble Each row will generate a new document, the data in the columns is passed as variables to be used in the template.
- template
A quarto template
- output_dir
The directory to render the files to
- merge
If a string, merges the multiple document in document with the corresponding name. Default is false.
Examples
if (FALSE) { # interactive()
# Read a file containing the data used in the template
readr::read_csv("data_file.csv") |>
gvz_render_multiple("template.qmd", "./")
}