Saves tables as PDF using gt::gtsave(), which requires the webshot2
package (and a Chromium installation reachable by chromote).
write_pdf(
data,
path,
...,
title = NULL,
subtitle = NULL,
source_note = NULL,
footnotes = NULL,
separate_files = TRUE,
names_separator = "__",
facade = get_tsg_facade(which = "html")
)Invisibly returns NULL.
A tsg or data frame, or a named list of them.
File path for the PDF output. A .pdf extension is added if missing.
When data is a list and separate_files = TRUE, this is used as a directory.
Additional arguments passed to tsg_to_gt().
Optional title string (overrides data attribute).
Optional subtitle string.
Optional source note string.
Optional character vector of footnotes.
Logical. When data is a list, TRUE (default) saves
each table as a separate PDF file inside a subdirectory; FALSE merges them into
a single PDF (requires qpdf).
Column name separator for spanners. Default "__".
Styling options. Defaults to the global tsg facade.
When data is a named list, the default (separate_files = TRUE) writes
each table to its own .pdf file inside a directory. Set
separate_files = FALSE to merge all tables into a single PDF (requires the
qpdf package).