Remove YAML header

remove_yaml_header(file)

Arguments

file

file name of the markdown file

Value

A character vector of the text without the YAML header

Examples

file <- system.file("extdata/00_template.Rmd", package = "ottrpal") out <- remove_yaml_header(file)
#> Warning: file("") only supports open = "w+" and open = "w+b": using the former
head(out)
#> character(0)