View source: R/magick_helpers.R
magickForKnitr | R Documentation |
Display an image in rmarkdown with knitr
magickForKnitr( imgs, .prefix = "tile", .resize = NULL, .path = tempdir(), .include = F, .print = T )
imgs |
a magick image or cellMagick output |
.prefix |
A string prepended to the file name, "" by default. |
.resize |
a cellMagick image resize string as "200x200" (default NULL, for no resizing). |
.path |
Directory where the output should be saved. |
.include |
Set to true to use knitr::include_graphics directly. |
.print |
Print the image path. |
An path to a temporary image file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.