write_variables {froggeR} | R Documentation |
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)
Arguments
path |
Character string. Path to the project directory. |
.initialize_proj |
Logical. TRUE only if starting a
|
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.
Value
Invisibly returns 'NULL' after creating or updating the '_variables.yml' file.
Examples
# Write the _variables.yml file
if (interactive()) {
temp_dir <- tempdir()
write_variables(temp_dir)
}
[Package froggeR version 0.4.0 Index]