Learn R Programming

froggeR (version 0.5.0)

write_variables: Write Variables YAML for 'Quarto' Projects

Description

This function creates or updates the `_variables.yml` file in a Quarto project directory using froggeR settings, if they exist in the config path.

Usage

write_variables(path = here::here(), .initialize_proj = FALSE)

Value

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

Arguments

path

Character string. Path to the project directory.

.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 `_variables.yml` will be created.

Examples

Run this code

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

Run the code above in your browser using DataLab