View source: R/plantuml_knit_engine.R
plantuml_knit_engine | R Documentation |
This function provides a knit engine for the plantuml. It has the following additional functions:
plantuml.format: the format of the generated image. For formats which return images, these will be inserted, formats resulting in text qill be included as text. At the moment, the following are supported:
auto (default) uses svg
if output is html
and pdf
if output is pdf
png To generate image using PNG format (default).
svg To generate image using SVG format.
eps To generate text in EPS format; or generates an image when outputting LaTeX rather than HTML formats.
plantuml.path: the path where the resulting files will be saved.
Default is the same directory as the .Rmd
file is in in a directory named
' plantuml. The path will be created if it does not exist. The name of each
plantuml figure is the label of thre chunk with the extension as specified.
plantuml.preview: if TRUE
, an inline preview will be shown in RStudio.
Attention: the processing takse twice as long as without this option!.
plantuml_knit_engine(options)
options |
knitr options see |
Thanks to Emiliano Heyns (retorquere) for giving me the idea for this
functiion https://github.com/rkrug/plantuml/issues/10#issue-639795529
See knit_engines
in the knitr packages for details
See knit_engines
in the knitr packages for details
## Not run:
## see
system.file("plantuml.Rmd", package = "plantuml")
## for an example RMarkdown file usint this knit engine.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.