A utility function that runs pdflatex

pdflatex(
  texfile,
  open = interactive(),
  verbose = FALSE,
  cleanup = TRUE,
  options = "-halt-on-error",
  path.to.pdflatex = Sys.which("pdflatex"),
  ...
)

Arguments

texfile

The path to the texfile

open

Logical, should the result be opened?

verbose

Logical, should the function be verbose?

cleanup

Logical, should tex/log files be cleaned?

options

Additional options passed to pdflatex

path.to.pdflatex

The system path to pdflatex

...

Further arguments, unused.