#' @importFrom magrittr "%>%"
magick_webshot <- function(...){
path <- paste0(tempfile(), ".png")
safe_webshot(..., file = path)
webshot <- magick::image_read(path)
file.remove(path)
webshot
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.