bcat_new_quarto: Create a UC-branded Quarto document

View source: R/bcat_new_quarto.R

bcat_new_quartoR Documentation

Create a UC-branded Quarto document

Description

Copies a UC Quarto template into the specified directory, ready to edit and render.

Usage

bcat_new_quarto(
  type = c("html", "pdf", "revealjs"),
  path = getwd(),
  overwrite = FALSE
)

Arguments

type

Character. Template type: "html", "pdf", or "revealjs".

path

Character. Directory to copy the template into. Default is current working directory.

overwrite

Logical. Overwrite existing files? Default is FALSE.

Value

An invisible character scalar giving the path to the created template.qmd file.

Author(s)

Saannidhya Rawat

See Also

Other utilities: bcat_extract_metadata(), bcat_import_data(), bcat_setup_rmd(), bcat_source_rmd()

Examples

out_dir <- file.path(tempdir(), "uc-quarto")
created <- bcat_new_quarto("html", path = out_dir)
basename(created)
unlink(out_dir, recursive = TRUE)

Rbearcat documentation built on March 21, 2026, 5:07 p.m.