| read_metadata | R Documentation |
Reads a yaml metadata file into a named 'list' of study-level values suitable for the 'metadata' argument of [read_spec()] and [apply_tokens()]. Each top-level key in the file becomes a '{token}' that can be referenced in the 'titles' and 'footnotes' fields of a spec. An example file is shipped at 'system.file("metadata.yml", package = "autoslider.core")'.
read_metadata(metadata_file = "metadata.yml")
metadata_file |
'character(1)'. Path to a yaml metadata file, i.e. a flat mapping of 'key: value' pairs. |
A named 'list' of metadata values.
[read_spec()], [apply_tokens()]
metadata_file <- system.file("metadata.yml", package = "autoslider.core")
## Take a look at the 'raw' content of the metadata file
cat(readLines(metadata_file), sep = "\n")
## Read it into a named list of token values
read_metadata(metadata_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.