Skip to contents

latexmk needs to be in $PATH for this to work.

Usage

latexmk_system(
  slide_file,
  verbose = TRUE,
  log_stdout = "",
  log_stderr = "",
  supervise = TRUE
)

Arguments

slide_file

[character(1)] Name of a (single) slide, with or without .tex extension. See examples of find_slide_tex().

verbose

[TRUE]: Print output from docker/latexmk to console.

log_stdout, log_stderr

[""]: Path to write stdout/stderr log to. Discared if NULL or inherited from main R process if "". stderr can be redirected to stdout with "2>&1".

supervise

[TRUE]: Passed to processx::process()'s $new().

Value

A processx::process() object.

Note

This utility is usually invoked by compile_slide().

Examples

if (FALSE) { # \dontrun{
latexmk_system("slides-advriskmin-bias-variance-decomposition.tex")
} # }