I'd like to rmarkdown::render
a R
document without indicating the yaml options within the document itself.
Ideally that could be an argument on rmarkdown::render
or knitr::spin
like what you can do to pass params
(see the Rmarkdown reference book). Typically I'd like author
, date
and the output
options too.
I think this is possible because spining the following document without specifying anything I get the following output (so there must be a template of default args that I can hopefully change)
As an example, how could I do to render
a document that would give me the same output as say the below (but of course without specifying the yaml in the document ie no yaml whatsoever in the document)
---
title: "Sample Document"
output:
html_document:
toc: true
theme: united
pdf_document:
toc: true
highlight: zenburn
---
#' # Title
Hello world
#+ one_plus_one
1 + 1