Description Usage Arguments Value Note Author(s) See Also Examples
This function prints a knitr header to the console, which can be copied and pasted to the top of an Rmd file. The header includes a ruled line underneath the document information followed by vertical whitespace.
1 | print_header(title, author, date)
|
title |
Character string for document title. Required. |
author |
Character string for document author. Required. |
date |
Character string for document date. Optional; defaults to current date formatted as DD Month YYYY. |
Returns a knitr header printed to the console.
This function assumes the document will be styled with "style.css"."
Erica Wozniak
1 2 3 4 5 6 7 8 9 | # Minimal required inputs
print_header(title = "Document Title",
author = "Document Author")
# Altered date
# Minimal required inputs
print_header(title = "Document Title",
author = "Document Author",
date = "7-18-16")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.