Skip to contents

This function saves the current _brand.yml file from an existing froggeR Quarto project to your global (system-wide) froggeR configuration. This allows you to reuse brand settings across multiple projects.

Usage

save_brand(save_logos = TRUE)

Arguments

save_logos

Logical. Should logo files from the logos directory also be saved to global configuration? Default is TRUE.

Value

Invisibly returns NULL after saving configuration file.

Details

This function:

  • Reads the project-level _brand.yml file

  • Saves it to your system-wide froggeR config directory

  • Optionally copies the logos directory for reuse in future projects

  • Prompts for confirmation if a global configuration already exists

The saved configuration is stored in rappdirs::user_config_dir('froggeR') and will automatically be used in new froggeR projects created with init or write_brand.

Examples

# Save brand settings from current project to global config
if (interactive()) save_brand()

# Save brand settings but skip logos
if (interactive()) save_brand(save_logos = FALSE)