Skip to contents

Creates a Shiny downloadHandler that exports all available datasets as CSV files (for tabular data) or TXT files (for text/object data) in a single ZIP archive. Also includes a metadata file with export information.

The ZIP filename is derived from a reference ID generated by eDataDRF::generate_reference_id().

Usage

download_all_data(session, moduleState = NULL)

Arguments

session

Shiny session object. Required to access reactive values.

moduleState

ReactiveValues object containing export_ready flag, available_datasets, and campaign_name fields.

Value

A Shiny downloadHandler function

Examples

if (FALSE) { # \dontrun{
  # Used inside a Shiny module server function
  output$download_btn <- download_all_data(session, moduleState)
} # }