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 of the input file
path of the output file for knit()
; if NULL
, this
function will try to guess and it will be under the current working
directory
whether to tangle the R code from the input file (like
Stangle
)
a character vector as an alternative way to provide the input file
whether to suppress the progress bar and messages
the environment in which the code chunks are to be evaluated
(for example, parent.frame()
, new.env()
, or
globalenv()
)
the encoding of the input file; see file
a character string describing the Pandoc output format to use
an R function used to call Pandoc; by default, if
rmarkdown installed uses
rmarkdown::pandoc_convert()
else
pandoc()
.
options to be passed to the pandoc_wrapper
function
Returns the output of the pandoc_wrapper
function.