O'Reilly logo

R Data Analysis Cookbook by Shanthi Viswanathan, Viswa Viswanathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required