Skip to contents

Render multiple files

Usage

gvz_render_multiple(data, template, output_dir, merge = FALSE)

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.

Value

Generate pdf files

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", "./")
}