
Copy the bundled example reference-doc into a project
Source:R/example-template.R
styling_example_template.RdA convenience over file.copy(system.file("templates", "org-reference.docx", package = "quartifyr"), ...) – the docx itself is an opaque binary
either way, so this is a plain file copy, no Python engine involved.
Usage
styling_example_template(
dir = ".",
file = "org-reference.docx",
overwrite = FALSE,
src = system.file("templates", "org-reference.docx", package = "quartifyr")
)Examples
dest_dir <- tempfile("quartifyr-project-")
dir.create(dest_dir)
styling_example_template(dest_dir)
list.files(dest_dir)
#> [1] "org-reference.docx"