This function has been deprecated, use tex_preview instead.
texPreview(
obj,
tex_lines = NULL,
stem = "tex_temp",
overwrite = TRUE,
keep_pdf = FALSE,
tex_message = FALSE,
fileDir = tex_opts$get("fileDir"),
margin = tex_opts$get("margin"),
imgFormat = tex_opts$get("imgFormat"),
returnType = tex_opts$get("returnType"),
resizebox = tex_opts$get("resizebox"),
usrPackages = tex_opts$get("usrPackages"),
engine = tex_opts$get("engine"),
cleanup = tex_opts$get("cleanup"),
density = tex_opts$get("density"),
svg_max = tex_opts$get("svg_max"),
print.xtable.opts = tex_opts$get("print.xtable.opts"),
opts.html = tex_opts$get("opts.html"),
markers = interactive(),
...
)
object to convert to TeX script
vector of character, in case of special needs, instead of asking texPreview to build up, you may choose to pass in the contents of the complete LaTeX file directly. It should be a vector of character with each element as a line of raw TeX code.
character, name to use in output files, Default: "tex_temp"
logical, controls if overwriting of output stem* files given their existences, Default: TRUE
logical, controls if the rendered pdf file should be kept or deleted, Default: FALSE
logical, controls if latex executing messages are displayed in console. Default: FALSE
character, output destination. If NULL a temp.dir() will be used and no output will be saved, Default: tex_opts$get('fileDir')
table margin for pdflatex call, Default: tex_opts$get('margin')
character, defines the type of image the PDF is converted to Default: tex_opts$get('imgFormat')
character, one of "viewer", "html", or "tex" determining appropriate return type for the rendering process, Default: tex_opts$get('returnType')
logical, forces a tabular tex object to be constrained on the margins of the document, Default: tex_opts$get('resizebox')
character, vector of usepackage commands, see details for string format
character, specifies which latex to pdf engine to use ('pdflatex','xelatex','lualatex'), Default: tex_opts$get('engine')
character, vector of file extensions to clean up after building pdf, Default: tex_opts$get('cleanup')
numeric, controls the density of the image. Default is 150: tex_opts$get('density)
numeric, maximum svg file size allowable to preview, Default: tex_opts$get('svg_max')
list, contains arguments to pass to print.table, relevant only if xtable is used as the input, Default: tex_opts$get('print.xtable.opts')
list, html options, Default: tex_opts$get('opts.html')
logical, if TRUE then RStudio markers will be invoked to create links for the log file on rendering errors, Default: interactive()
passed to system2