| export_reports | R Documentation |
Writes each report from read_reports() as a YAML file named
<id>.yaml, holding the metadata fields and the Markdown text in body.
yaml12::read_yaml() reads a file back in one call.
export_reports(dir, overwrite = FALSE)
dir |
Directory to write to. Created if it does not exist. |
overwrite |
Replace files that already exist? |
The paths of the written files, invisibly.
dir <- file.path(tempdir(), "contoso-reports")
paths <- export_reports(dir)
yaml12::read_yaml(paths[1])$title
unlink(dir, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.