Web Apps in R Using Shiny

Steven Mortimer
March 21, 2017

What is Shiny?

  • A web application framework for R
  • Written by Joe Cheng and RStudio
  • First CRAN package up in 2012
  • Delivers interactive experience over the web, all written in R!
  • Ready for the enterprise

Show me Shiny!

Prerequisites

  1. R and RStudio
  2. Intermediate Understanding of R
    • Import/Export data, dplyr, ggplot
  3. HTML, CSS, JavaScript not required, but helpful
  4. Strategy for sharing (Markdown/Pres, Hosted/Private)


The shiny package!

And More Cool Stuff

The DT package - Highly interactive, functional tables based on

More examples available on https://rstudio.github.io/DT/

Running Shiny Apps

  • Located on GitHub, in a Gist, or archived (e.g. .tar.gz)

Those options explained in more detail here

shiny::runGitHub(repo = "com.packtpub.intro.r.bi",
                 username = "StevenMMortimer",
                 subdir = "Chapter8-ShinyDashboards/Ch8-CampaignCreatorApp")


https://reportmort.shinyapps.io/campaign-creator-app/

  • Hosted on a private server

Happy App-ing with Shiny!