render_latex: Convert a 'LaTeX' expression to an image (render)
Description
This calls tex_preview
to render a 'LaTeX'
expression into an image, either as a temporary file or saved to disk.
Usage
render_latex(latex, fileDir = NULL, ...)
Arguments
- latex
'LaTeX' code to be evaluated. Surround in $
or $$
.
- fileDir
directory in which to save the image to (defaults to
`/tmp/tempfile()`).
- ...
other options to pass to tex_preview
.