View source: R/server-download_handler.R
download_handler | R Documentation |
'download_handler()' is paired with
download_button()
; it creates a
temporary file for the user to download.
download_handler( id, title, w = 8.5, h = 11, content = function(file) ggsave(file, device = id, width = w, height = h) )
id |
The ID to assign to the handler and button |
title |
The title of the calendar, via 'shiny::reactive(input$calendar_title)' |
w |
The width of the output, in inches, when content is left as default |
h |
The height of the output, in inches, when content is left as default |
content |
A function that takes a single argument |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.