Learn R Programming

froggeR (version 1.0.0)

write_variables: Write Variables YAML for Quarto Projects

Description

Creates or opens a _variables.yml file in a Quarto project for editing. If the file already exists, it is opened directly. If global froggeR settings exist, those are used as the starting point. Otherwise, the template is downloaded from the frogger-templates repository.

Usage

write_variables(path = here::here())

Value

Invisibly returns the path to the file.

Arguments

path

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

Details

The _variables.yml file stores reusable author metadata that Quarto documents can reference. Available fields:

  • name: Your full name as it appears in publications

  • email: Contact email address

  • orcid: ORCID identifier (e.g., 0000-0001-2345-6789)

  • url: Personal website or profile URL

  • github: GitHub username

  • affiliations: Institution, department, etc.

Use save_variables to persist your project-level metadata to the global config directory for reuse across projects.

See Also

save_variables, write_brand, init

Examples

Run this code
if (FALSE) {
write_variables()
}

Run the code above in your browser using DataLab