Skip to content

Instantly share code, notes, and snippets.

@vnijs
vnijs / snapper-app.R
Last active May 10, 2020 19:20
Generate a shiny-app screenshot using snapper and download it using shinyFiles, shiny, or snapper
library(shiny)
# remotes::install_github("yonicd/snapper")
# remotes::install_github("thomas85p/shinyFiles")
library(snapper)
library(base64enc)
library(png)
library(shinyFiles)
js <- '
function get_img_src() {