compile_tikzpicture | R Documentation |
Takes the output of tikzDevice::tikz
with standalone = FALSE
, wraps into
a latex document and then compiles using latexmk
, cleaning up as it goes.
compile_tikzpicture(
filename,
packages = NULL,
pre_begin_document = NULL,
recompile = TRUE,
create_png = FALSE
)
filename |
Character. Filename of a tikzpicture in |
packages |
Vector of strings. If no |
pre_begin_document |
Verbatim text to include right before
|
recompile |
Logical. If FALSE, does not update if pdf date is newer than the tex date. |
create_png |
Logical. If true, will also output a png in addition to the pdf. |
Invisibly returns TRUE
if compilation succeeds.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.