hook_convert_odg: Odg Graphics File Conversion Hook

View source: R/odg_graphics.R

hook_convert_odgR Documentation

Odg Graphics File Conversion Hook

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

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

## Not run: 
# registration of hook function
knitr::knit_hooks$set(hook_convert_odg = rmdhelp::hook_convert_odg)
...

## End(Not run)


charlotte-ngs/rmdhelp documentation built on Oct. 31, 2023, 10:21 a.m.