downloadTable: Download tables in different formats

Description Usage Arguments Value Examples

View source: R/downloadTable.R

Description

This module uses downloadHandler to allow downloads of tables in different formats (xlsx, rds, and csv).

Usage

1
2
3
downloadTable(input, output, session, rTable, fileName = "tableFile")

downloadTableUI(id)

Arguments

input, output, session

Standard module parameters

rTable

A reactive table (for example a data.frame)

fileName

A prefix for the default name in the download handler.

id

The module identifier

Value

Currently, no reactive code is returned due to issues with downloadTable. See here

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
shinyApp(
  fluidPage(downloadTableUI("downloadTable")),
  function(input, output, session) {
    callModule(downloadTable, "downloadTable", reactive({mtcars}),
               fileName = "mtcars")
  }
)

## End(Not run)

statistikat/codeModules documentation built on Feb. 17, 2021, 11:42 a.m.