asis_yaml_output() exports a yml object as a YAML knitr code chunk instead of as an R object. Doing so adds code highlighting for YAML syntax.

asis_yaml_output(.yml, fences = TRUE)

Arguments

.yml

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

fences

Logical. Write fences ("---") before and after YAML?