Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbryer/ShinyDemo
Package for running Shiny apps like R package demos
https://github.com/jbryer/ShinyDemo
Last synced: 8 days ago
JSON representation
Package for running Shiny apps like R package demos
- Host: GitHub
- URL: https://github.com/jbryer/ShinyDemo
- Owner: jbryer
- Created: 2014-08-25T18:10:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-08T12:53:45.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T06:18:14.431Z (about 1 month ago)
- Language: R
- Size: 701 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - jbryer/ShinyDemo - Package for running Shiny apps like R package demos (R)
README
## ShinyDemo - Package for Running Shiny Apps Like Package Demos
#### Authors: Jason Bryer ([[email protected]](mailto:[email protected]))
#### Website: http://jbryer.github.io/ShinyDemo/This package is designed to run Shiny apps included in packages in the inst/shiny/ directory. In addition to providing a standardized way of running apps within packages, it extends the typical process of running Shiny apps by allowing function parameters to be passed to the application. Utility functions for the developer are provided to safely check for parameter values and to retrieve defaults if the application is run outside of the package.
#### Installation
The latest version of the `ShinyDemo` package can be installed using the `devtools` package.
```
devtools::install_github('jbryer/ShinyDemo')
```For package developers, simply include your Shiny apps in the `inst/shiny` directory within your R package. The `ShinyDemo::shiny_demo()` function will automatically find those apps.
```
library('ShinyDemo')
shiny_demo()
shiny_demo('df_viewer',
mtcars = mtcars,
faithful = faithful)
```