downloadButton

0th

Percentile

Create a download button or link

Use these functions to create a download button or link; when clicked, it will initiate a browser download. The filename and contents are specified by the corresponding downloadHandler defined in the server function.

Usage
downloadButton(outputId, label = "Download", class = NULL)

downloadLink(outputId, label = "Download", class = NULL)

See Also

downloadHandler

Aliases
Examples
# In server.R:
output$downloadData <- downloadHandler(
  filename = function() {
    paste('data-', Sys.Date(), '.csv', sep='')
  },
  content = function(con) {
    write.csv(data, con)
  }
)

# In ui.R:
downloadLink('downloadData', 'Download')
Documentation reproduced from package shiny, version 0.9.1, License: GPL-3

Community examples

Looks like there are no examples yet.