Chapter 4. Shiny – a Web-app Framework for R

This chapter covers the following topics:

  • An introduction to the Shiny app framework
  • Creating your first Shiny app
  • The connection between the server file and the user interface
  • The concept of reactive programming
  • Different types of interface layouts, widgets, and Shiny tags
  • How to create a dynamic user interface
  • Ways to share your Shiny applications with others
  • How to deploy Shiny apps to the web

Introducing Shiny – the app framework

The Shiny package delivers a powerful framework to build fully featured interactive Web applications just with R and RStudio. Basic Shiny applications typically consist of two components:

~/shinyapp
|-- ui.R
|-- server.R

While the ui.R function represents the appearance of the user ...

Get Mastering RStudio – Develop, Communicate, and Collaborate with R 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.