We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A button allows to download image presented.
The text was updated successfully, but these errors were encountered:
Note to self:
library(shiny) ui <- function(request){ tagList( plotOutput("plop") %>% tagAppendAttributes( onclick = 'var a = document.createElement("a"); a.href = $(this).find("img").attr("src"); a.download = "Image.png"; a.click(); ' ) ) } server <- function( input, output, session ){ output$plop <- renderPlot({ plot(mtcars) }) } shinyApp(ui, server)
Sorry, something went wrong.
No branches or pull requests
A button allows to download image presented.
Les pages
The text was updated successfully, but these errors were encountered: