| hook_convert_odg | R Documentation | 
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.
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 | 
## Not run: 
# registration of hook function
knitr::knit_hooks$set(hook_convert_odg = rmdhelp::hook_convert_odg)
...
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.