A wrapper of knitr::include_graphics with file conversion
1 | include_graphics2(path, auto_pdf = TRUE, auto_png = TRUE, dpi = NULL)
|
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.