View source: R/helpers_magick.R
| take.screenshot | R Documentation |
Takes a screenshot of the current rgl scene. On systems with working X11/OpenGL, uses the standard rgl.snapshot() method. On systems without X11 (e.g., recent macOS versions where XQuartz is broken), falls back to exporting as PDF via rgl.postscript() and converting to PNG using ImageMagick.
take.screenshot(output_image, silent = TRUE)
output_image |
character string, path to the output PNG file. |
silent |
logical, whether to suppress messages. Default TRUE. |
invisible NULL, called for side effect of writing the image file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.