Description Usage Arguments Value Examples
Insert a YAML header into the R Markdown file
1 2 |
filename |
The name of the file, including the .Rmd extension, into which the YAML header should be inserted |
title |
Character giving the title of the document |
author |
Character giving the author's name |
date |
If |
output |
The document type that will be generated, e.g. |
Returns the filename to allow chaining with other insert functions
1 2 3 4 5 6 7 | ## Not run:
createFile("Test File") %>%
insertYAML(title = "Test Report",
author = "J. Bloggs",)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.