This project accompanies BernR Meetup: Shiny from basics to awesome in 26 minutes, Monday, October 14, 2019.
The tutorial uses following packages:
shinyfor building interactive appsmagrittrto provide a pipe operatorshinycssloadersto provide loader animations (spinners)shinyBSto provide popups and alerts
The tutorial covers a basic shiny app with enhancements:
app-step1.Rimplements a basic app to plot a histogram of Gaussian-distributed numbers with adjustable number of binsapp-step2.Radds a selection field to choose the sample size from a predefined listapp-step3.Radds a debounce function to slow down the reactive sliderapp-step4.Radds a loader animation (a spinner) fromshinycssloaderspackageapp-step5.Radds alert popups fromshinyBSpackageapp-step6.Radds help popups and tooltips fromshinyBSpackage
Apps can be launched:
- from within RStudio by clicking Run App button in the upper right corner of the editor window
- from command line by executing
R -e "shiny::runApp('app-step1.R', port = 6969)"and then pointing your browser to http://127.0.0.1:6969. The value of theportparameter can be changed to suit your needs.