Last chance! 50% off unlimited learning
Sale ends in
Knit the input Rnw or Rrst document, and compile to PDF using
tinytex::latexmk()
or rst2pdf()
.
knit2pdf(
input,
output = NULL,
compiler = NULL,
envir = parent.frame(),
quiet = FALSE,
...
)
The filename of the PDF file.
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.
A character string giving the LaTeX engine used to compile
the tex document to PDF. For an Rrst file, setting compiler
to
'rst2pdf'
will use rst2pdf
to compile the rst file to
PDF using the ReportLab open-source library.
Environment in which code chunks are to be evaluated, for
example, parent.frame()
, new.env()
, or
globalenv()
).
Boolean; suppress the progress bar and messages?
Options to be passed to tinytex::latexmk()
or rst2pdf()
.
Ramnath Vaidyanathan, Alex Zvoleff and Yihui Xie
#' compile with xelatex
## knit2pdf(..., compiler = 'xelatex')
#' compile a reST file with rst2pdf
## knit2pdf(..., compiler = 'rst2pdf')
Run the code above in your browser using DataLab