Skip to contents

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)

Arguments

path

Character string. Path to the project directory.

.initialize_proj

Logical. TRUE only if starting a froggeR::quarto_project().

Value

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

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


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