Description Usage Arguments Value Examples
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.
1 2 3 | yaml_header(title, author, ...)
chunk_options(...)
|
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 |
An incomplete yaml header, or a line of chunk options, in the clipboard by default
1 2 3 4 5 6 | yaml_header(title = "My script",
author = "Bill Venables")
chunk_options(comment="",
fig.height=7,
fig.width=8,
out.width="90%")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.