O'Reilly logo

Learning Shiny by Hernán G. Resnizky

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

An overview of simple examples

The Shiny package includes several examples. The runExample() command, with no arguments passed, displays the available examples as follows:

> runExample()
Valid examples are "01_hello", "02_text", "03_reactivity", "04_mpg", "05_sliders", "06_tabsets", "07_widgets", "08_html", "09_upload", "10_download", "11_timer"

To see the examples running, the name of the example must be passed as shown here:

> runExample("01_hello")

The examples are displayed in a separate window that includes the application and both server.R and UI.R, which generate them. The scripts are very well described so that it is easy to understand what each piece of code does:

Some additional examples will be found in the following sections. The scripts ...

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