yaml_header {bannerCommenter} | R Documentation |
Functions for YAML comments
Description
A facility for generating a comment block for inserting at the top of an R script to insert a yaml header and for setting chunk options within scripts to use the RStudio facility for automatically rendering scripts into documents.
Usage
yaml_header(title, author, ...)
chunk_options(...)
Arguments
title |
A character string; if omitted may be supplied via the console |
author |
A character string; if omitted may be supplied via the console |
... |
Extra arguments, for yaml_header currently ignored; for chunk_options comma separated chunk options |
Value
An incomplete yaml header, or a line of chunk options, in the clipboard by default
Examples
yaml_header(title = "My script",
author = "Bill Venables")
chunk_options(comment="",
fig.height=7,
fig.width=8,
out.width="90%")
[Package bannerCommenter version 1.0.0 Index]