View source: R/shinyDownloadExample.R
shinyDownloadExample | R Documentation |
Demonstrate how the package methods work in an example Shiny app
shinyDownloadExample(example)
example |
Character string containing the name of one of the example Shiny apps. You can choose from "ggplot", "report", "table" or "panel". The app will open in "showcase" mode, so the app's source code is also provided. |
Thanks to Dean Attali for this method which was obtained from https://deanattali.com/2015/04/21/r-package-shiny-app/
## Not run:
# For downloading ggplot objects
shinyDownloadExample("ggplot")
# For downloading compiled rmarkdown documents
shinyDownloadExample("report")
# For downloading data frame objects
shinyDownloadExample("table")
# Inspiration for how shinyDownload can be combined with a Bootstrap panel
shinyDownloadExample("panel")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.