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(), encoding = getOption("encoding"), to = "html",
pandoc_wrapper = NULL, ...)
Path to the input file.
Path to the output file for knit()
. If NULL
, this
function will try to guess a default, which will be under the current working
directory.
Boolean; whether to tangle the R code from the input file (like
Stangle
).
A character vector. This is an alternative way to provide the input file.
Boolean; suppress the progress bar and messages?
Environment in which code chunks are to be evaluated,
for example, parent.frame()
, new.env()
, or
globalenv()
).
Encoding of the input file; see file
.
Character string giving the Pandoc output format to use.
An R function used to call Pandoc; by default, if
rmarkdown is installed, this uses
rmarkdown::pandoc_convert()
, otherwise it
pandoc()
.
Options to be passed to the pandoc_wrapper
function.
Returns the output of the pandoc_wrapper
function.