Nothing
% Simple example % Stephen Eglen % 2013-07-10
This first chunk creates the extra lines for the latex header. We use the
cat
engine to save the content of the chunk to a file specified in the
engine.opts
option. This file will be passed to pandoc
via the
--include-in-header
(or -H
) option.
We can then do some simple R math.
2 + 2
## [1] 4
To compile this document in R:
library(knitr)
knit("095-pandoc-header.Rmd")
pandoc("095-pandoc-header", format = "latex")
# or two commands in one
pandoc(knit("095-pandoc-header.Rmd"), format = "latex")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.