as_yml
is a wrapper for yaml::yaml.load()
that stores YAML as a yml
object, which prints cleanly to the console and is easy to work with using
ymlthis functions.
as_yml(x)
a yml
object
An object, either a character vector of length 1 or list, to convert
to yml
.
x <- as_yml("
author: Hadley Wickham
date: '2014-09-12'
title: Tidy Data
keywords:
- data cleaning
- data tidying
- relational databases
- R")
x
x %>%
yml_subtitle("Hadley's Tidy Data Paper")
Run the code above in your browser using DataLab