Creating interactive web applications with shiny

The shiny package helps in building interactive web applications using R. This recipe illustrates the main components of a shiny application through examples.

Getting ready

Download the files for this chapter and store them in your R working directory. The code for this chapter contains files in various subfolders (named DummyApp, SimpleApp, TabApp, ConditionalApp, and SingleFileApp). Copy these folders into your R working directory.

Install and load the shiny package as follows:

> install.packages("shiny")

Restart RStudio after installing shiny.

How to do it...

To create interactive web applications with shiny, follow the steps below:

  1. Get a feel for shiny by examining a dummy application with no functionality. ...

Get R: Recipes for Analysis, Visualization and Machine Learning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.