The resource_files field specifies a character vectors of paths to external resources to include in the output, e.g. files that are necessary for rendering. These files are handled with rmarkdown::find_external_resources().

yml_resource_files(.yml, resource_files)

Arguments

.yml

a yml object created by yml(), as_yml(), or returned by a yml_*() function

resource_files

A path to a file, directory, or a wildcard pattern (such as "data/*.csv")

Value

a yml object

See also

Examples

yml() %>% yml_resource_files(c("data/mydata.csv", "images/figure.png"))
#> --- #> author: runner #> date: '`r format(Sys.Date())`' #> resource_files: #> - data/mydata.csv #> - images/figure.png #> --- #>