Scripts and slides for presentations on Shiny. The presentation and material have been adapted for many different uses– hopefully yours is below!


Tutorials

The shinyoverview repo contains tutorials for {shiny} applications. If there are exercises with solutions, they are in a subfolder called sol/. You can either clone the whole repo, or download the folder for a specific tutorial.


Setup

If you want to try out the app examples, install the following packages:

# Basics
library(tidyverse)
library(kableExtra) # nice tables

# Shiny
library(shiny)
library(shinythemes) # bootstrap themes

# Interactive plots
library(plotly) 

# Making tutorials
library(learnr) # interactive tutorials
# remotes::install_github("rstudio-education/gradethis")
library(gradethis)

# Visualizing reactivity
library(reactlog)

This talk will introduce Shiny and its glorious abilities, with the assumption that you have heard of Shiny but haven’t necessarily used it yet. Because there are tons of great examples online, I have highlighted tools that I have found useful and fun. The talk structure will be, more or less:

  1. The building blocks: basic shiny functionality
  2. Getting data into and out of shiny
  3. Lessons I learned during the app development process

These latter two sections are optional but materials are included for you to explore on your own:

  1. Translating shiny apps using {shiny.18n}
  2. Shiny as a teaching tool using {learnr}

Example apps