| xweave | R Documentation |
Simple wrapper function that either calls Sweave
for Rnw exercises or knit for Rmd exercises.
xweave(file, quiet = TRUE, encoding = "UTF-8", engine = NULL, envir = new.env(),
pdf = TRUE, png = FALSE, svg = FALSE, height = 6, width = 6, resolution = 100,
highlight = FALSE, ...)
file, quiet |
arguments passed to |
encoding |
character, ignored. The encoding is always assumed to be UTF-8. |
engine |
character indicating whether |
envir |
argument passed to |
pdf, png, svg, height, width, resolution, highlight, ... |
arguments passed to
|
Depending on whether file has an .Rnw or .Rmd suffix,
either Sweave or knit is called for
weaving the file by default. Rnw exercises can optionally also be weaved by
knit by setting engine = "knitr".
If png = TRUE or svg = TRUE when calling Sweave, then
the resulting includegraphics statements are supplemented with the .png
or .svg suffix of the corresponding graphics. For svg a simple
graphics device hook .xweave_svg_grdevice is provided on-the-fly
for plug-in into Sweave.
Sweave,
knit
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.