Description Usage Arguments Examples
Graphics objects in odg-format are converted to png
or pdf format by this knitr-hook-function. We assume
that this hook-function is included in the chunk where
the graphics object is included using a call to
knitr::include_graphics()
, hence the conversion
of the odg-file must be run before the code in the chunk.
1 | hook_convert_odg(before, options, envir)
|
before |
flag whether hook is run before or after chunk |
options |
list of options passed from chunk to hook |
envir |
environment |
1 2 3 4 5 6 | ## Not run:
# registration of hook function
knitr::knit_hooks$set(hook_convert_odg = rmddochelper::hook_convert_odg)
...
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.