View source: R/write_variables.R
| write_variables | R Documentation |
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.
write_variables(path = here::here())
path |
Character. Path to the project directory. Default is current project
root via |
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.
Invisibly returns the path to the file.
save_variables, write_brand,
init
## Not run:
write_variables()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.