Learn R Programming

froggeR (version 0.6.0)

write_brand: Write Brand YAML for Quarto Projects

Description

This function creates a _brand.yml file in a Quarto project and opens it for editing.

Usage

write_brand(path = here::here(), restore_logos = TRUE)

Value

Invisibly returns the path to the created file.

Arguments

path

Character. Path to the project directory. Default is current project root via here.

restore_logos

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

Details

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

In interactive sessions, the file is opened in the default editor for immediate customization.

See Also

brand_settings, save_brand, settings

Examples

Run this code
# Write the _brand.yml file
if (interactive()) {
  temp_dir <- tempdir()
  # In an interactive session, this would also open the file for editing.
  write_brand(temp_dir)
  # Verify the file was created
  file.exists(file.path(temp_dir, "_brand.yml"))
}

Run the code above in your browser using DataLab