View source: R/read_brand_yml.R
| read_brand_yml | R Documentation |
Reads a Brand YAML file or finds and reads a _brand.yml file and
returns a validated Brand instance.
read_brand_yml(path = NULL)
path |
The path to the brand.yml file or a directory where |
By default, read_brand_yml() finds a project-specific _brand.yml file, by
looking in the current working directory directory or any parent directory
for a _brand.yml, brand/_brand.yml or _brand/_brand.yml file (or the
same variants with a .yaml extension). When path is provided,
read_brand_yml() looks for these files in the provided directory; for
automatic discovery, read_brand_yml() starts the search in the working
directory and moves upward to find the _brand.yml file.
A normalized brand_yml list from the brand.yml file.
https://posit-dev.github.io/brand-yml/
# For this example: copy a brand.yml to a temporary directory
tmp_dir <- tempfile()
dir.create(tmp_dir)
file.copy(
system.file("examples/brand-posit.yml", package = "brand.yml"),
file.path(tmp_dir, "_brand.yml")
)
brand <- read_brand_yml(tmp_dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.