View source: R/handle_image_output.R
| handle_image_output | R Documentation |
Handles image output logic: returning, saving to a file, or previewing.
handle_image_output(image, filename = NULL, preview = FALSE)
image |
3-layer RGB/4-layer RGBA array, |
filename |
Default |
preview |
Default |
If filename = NULL and preview = FALSE, returns the image array invisibly.
Otherwise, saves to file or displays the image.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.