rnw2pdf: compile Rnw document to pdf

View source: R/rnw2pdf.R

rnw2pdfR Documentation

compile Rnw document to pdf

Description

compile Rnw document to pdf, with nice error logging

Usage

rnw2pdf(
  file,
  usetinytex = requireNamespace("tinytex", quietly = TRUE),
  open = TRUE,
  clean = TRUE,
  ...
)

Arguments

file

Rnw file name.

usetinytex

Logical. Use tinytex::pdflatex (instead of tools::texi2pdf)? DEFAULT: TRUE when tinytex is available

open

Logical. Should pdf be opened with berryFunctions::openFile? DEFAULT: TRUE

clean

Clean up temporary files? DEFAULT: TRUE (unlike in tools::texi2pdf)

...

Further arguments passed to knitr::knit

Value

invisible charstring with file name

Author(s)

Berry Boessenkool, berry-b@gmx.de, Jul 2021


brry/knitPres documentation built on Oct. 22, 2022, 2:51 a.m.