Chapter 1 Prerequisites

Before the tutorial please install R and RStudio,

Download R

Download RStudio

Then install packages from CRAN and Bioconductor with the following R code:

install.packages("tidyverse")
install.packages("shiny")
install.packages("DT")
install.packages("shinydashboard")

1.1 Download files

download.file(
  "https://github.com/nkandhari/R-ShinyIntro-MBP/raw/master/ShinyApps.zip",
  destfile="ShinyApps.zip")
unzip("ShinyApps.zip")

Download these files. tutorial.R contains all the code in the “tutorial” link below. During the tutorial, we will be stepping through tutorial.R in RStudio.

1.2 Overview

  • Introduction to Shiny

  • Structure of a Shiny app

  • Reactivity

  • Create Shiny App from scratch

  • Next steps

Source code

This book was created in R using the rmarkdown and bookdown packages!