download_handler: 'downloadHandler()' Wrapper for schedules Package

View source: R/server-download_handler.R

download_handlerR Documentation

'downloadHandler()' Wrapper for schedules Package

Description

'download_handler()' is paired with download_button(); it creates a temporary file for the user to download.

Usage

download_handler(
  id,
  title,
  w = 8.5,
  h = 11,
  content = function(file) ggsave(file, device = id, width = w, height = h)
)

Arguments

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 file that is a file path (string) of a nonexistent temp file, and writes the content to that file path. (Reactive values and functions may be used from this function.)


jesse-smith/schedules documentation built on July 21, 2022, 9:40 a.m.