yml_load() is a wrapper for yaml::yaml.load() that also converts the object to the yml class.

yml_load(x)

Arguments

x

an object to pass to yaml::yaml.load()

Examples

c("title: my title", "author: Malcolm Barrett") %>%
  yml_load()
#> ---
#> title: my title
#> author: Malcolm Barrett
#> ---
#>