Description Usage Arguments Examples
This code sets some of the values for knitr that I like.
1 2 3 4 5 6 7 | knitrSetup(flavor = "tex", rootDir = getwd(), use.tikz = FALSE,
cache.use.time = FALSE, fig.folder = "graphics", fig.prefix = "fig_",
cache.folder = "cache", cache.prefix = "out_", formatR.arrow = TRUE,
code.width = 50, fig.height = 5, fig.width = 5, fig.align = "center",
fig.show = "hold", crop = TRUE, tidy = TRUE, fig.pos = "H",
par = TRUE, tikzLatex = "/usr/texbin/pdflatex", tikz.sanitize = TRUE,
tikz.crop = TRUE, return_opts = NULL)
|
rootDir |
character value, optional argument (defaults to working directory) |
use.tikz |
logical value, optional argument (default FALSE) |
cache.use.time |
logical value, optional argument (default FALSE) |
fig.folder |
character value, optional argument (default 'graphics') |
fig.prefix |
character value, optional argument (default 'fig_') |
1 | knitrSetup(use.tikz = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.