as_yaml_auto function

Parse a named list to yaml header for an Rmd file