shinyDownloadExample: Run an example Shiny app

View source: R/shinyDownloadExample.R

shinyDownloadExampleR Documentation

Run an example Shiny app

Description

Demonstrate how the package methods work in an example Shiny app

Usage

shinyDownloadExample(example)

Arguments

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.

Details

Thanks to Dean Attali for this method which was obtained from https://deanattali.com/2015/04/21/r-package-shiny-app/

Examples

## 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)

keithnewman/shinyDownload documentation built on March 13, 2024, 6:35 a.m.