hook_convert_odg: Odg Graphics File Conversion Hook

Description Usage Arguments Examples

Description

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.

Usage

1
hook_convert_odg(before, options, envir)

Arguments

before

flag whether hook is run before or after chunk

options

list of options passed from chunk to hook

envir

environment

Examples

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)

charlotte-ngs/rmddochelper documentation built on June 27, 2019, 1:22 a.m.