What is Shiny ?

Shiny is an R package that makes it easy to build interactive web applications (apps) straight from R.

How to install Shiny Package

install.packages("shiny")

How to use Shiny Package

library("shiny")

Structure of a Shiny App

Shiny apps are contained in a single script called app.R

app.R has three components:

The user interface ui object controls the layout and appearance of our app. The server function contains the instructions that our computer needs to build app. Finally the shinyApp function creates Shiny app from an explicit UI/server pair.

Previous
Next