View source: R/utils-conversion.R
knit2pandoc | R Documentation |
knit()
and
PandocKnits the input file and compiles to an output format using Pandoc.
knit2pandoc(
input,
output = NULL,
tangle = FALSE,
text = NULL,
quiet = FALSE,
envir = parent.frame(),
to = "html",
pandoc_wrapper = NULL,
...,
encoding = "UTF-8"
)
input |
Path to the input file. |
output |
Path to the output file for |
tangle |
Boolean; whether to tangle the R code from the input file (like
|
text |
A character vector. This is an alternative way to provide the input file. |
quiet |
Boolean; suppress the progress bar and messages? |
envir |
Environment in which code chunks are to be evaluated, for
example, |
to |
Character string giving the Pandoc output format to use. |
pandoc_wrapper |
An R function used to call Pandoc. If |
... |
Options to be passed to the |
encoding |
Ignored (always assumes UTF-8). |
Returns the output of the pandoc_wrapper
function.
Trevor L. Davis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.