Learn R Programming

froggeR (version 0.5.0)

write_brand: Write Brand YAML for 'Quarto' Projects

Description

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
)

Value

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

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().

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

Run this code

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

Run the code above in your browser using DataLab