save_variables: Save Metadata Configuration to Global froggeR Settings

View source: R/save_variables.R

save_variablesR Documentation

Save Metadata Configuration to Global froggeR Settings

Description

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

Usage

save_variables()

Details

This function:

  • Reads the project-level _variables.yml file

  • Saves it to your system-wide froggeR config directory

  • 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_variables.

This is useful for maintaining consistent author metadata (name, email, affiliations, etc.) across all your projects without having to re-enter it each time.

Value

Invisibly returns NULL after saving configuration file.

See Also

write_variables, save_brand

Examples

# Save metadata from current project to global config
if (interactive()) save_variables()


froggeR documentation built on March 17, 2026, 9:06 a.m.