Skip to contents

This function creates or updates the `_brand.yml` file in a Quarto project directory if they exist in the config path.

Usage

write_brand(
  path = here::here(),
  restore_logos = TRUE,
  .initialize_proj = FALSE
)

Arguments

path

Character string. Path to the project directory.

restore_logos

Logical. Restore logo content from system configuration. Default is `TRUE`.

.initialize_proj

Logical. TRUE only if starting a froggeR::quarto_project().

Value

Invisibly returns `NULL` after creating or updating the `_brand.yml` file.

Details

The function will attempt to use the current froggeR settings from the config path. If no global configurations exist, a template `_brand.yml` will be created.

Examples


# Write the _brand.yml file
if (interactive()) {
  temp_dir <- tempdir()
  write_brand(temp_dir)
}