include_graphics2: A wrapper of knitr::include_graphics with file conversion

Description Usage Arguments

Description

A wrapper of knitr::include_graphics with file conversion

Usage

1
include_graphics2(path, auto_pdf = TRUE, auto_png = TRUE, dpi = NULL)

Arguments

path

A character vector of image paths.

auto_pdf

If knitting pdf and input path is svg file, use pdf file instead. Conversion is also performed if neccessary.

auto_png

If knitting docx and input path is svg file, use png file instead. Conversion is also performed if neccessary.

dpi

DPI (dots per inch) value. Used to calculate the output width (in inches) of the images. This will be their actual width in pixels, divided by dpi. If not provided, the chunk option dpi is used; if NA, the output width will not be calculated.


atusy/mytools documentation built on May 9, 2019, 12:51 p.m.