Chapter 4. Shiny Structure – Reactivity Concepts

Before diving deep into the different possibilities that Shiny provides, it is necessary to have a clear understanding of what Shiny is. For this reason, this chapter covers its central concepts with a special focus on reactivity and explains the structure of their implementation.

In short, we will cover the following topics:

  • Shiny as a package
  • An introduction to server.R and UI.R
  • The concept of reactivity
  • Reactive independent processes within an application
  • An introduction to global.R
  • Running a Shiny web application
  • An overview of simple examples

Shiny as a package

In Chapter 1, Introducing R, RStudio, and Shiny, we learned that Shiny is a package. Packages in R, in most cases, are a collection of functions ...

Get Learning Shiny 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.