1.1 Introduction

This chapter is basically a quick demo of the minimum boilerplate needed for a Shiny app.

It defines the two key components - the ui and the server

Then introduces reactive programming - which is how shiny automatically updates outputs when inputs change.

Shiny outputs (tables, charts etc.) can automatically react (recalculate) when their inputs change.

1.1.1 If you haven’t installed Shiny already:

install.packages('shiny')

Check you have version 1.5.0 or higher

packageVersion("shiny")
## [1] '1.8.1.1'

Load shiny

library('shiny')