Files for the RStudio::conf 2019 workshop: Introduction to Shiny and R Markdown
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
00-welcome removed burritos Jan 13, 2019
01-md-compose-prose Added solution file for 01 Jan 15, 2019
02-R-in-Markdown removed burritos Jan 13, 2019
03-up-your-rmd-game Reviewed 04 materials Jan 14, 2019
04-shiny-getting-started Reviewed 04 materials Jan 14, 2019
05-understand-reactivity Reviewed 05 Jan 14, 2019
06-design-ui
07-dashboards Added an Rmd document Jan 14, 2019
08-more-react fixed obsolete file references Jan 16, 2019
09-wrap-up Adding slides into repository. Jan 6, 2019
cond Initial commit, from Mine's repo. Dec 21, 2018
data added data directory Jan 14, 2019
.gitignore Initial commit, from Mine's repo. Dec 21, 2018
README.md fixed obsolete file references Jan 16, 2019
shinymark.Rproj Initial commit, from Mine's repo. Dec 21, 2018

README.md

shinymark

Materials for the Introduction to Shiny and R Markdown workshop at rstudio::conf 2019


Locating the materials

  • Option 1 - ☁️ RStudio Cloud: bit.ly/shinymark

    • If you do not already have an RStudio.cloud account, you will be prompted to login via Google or create a new account.
    • When you are
  • Option 2 - 💻 Local installation: github.com/dtkaplan/shinymark


Outline

Day 1: January 15, 2019

💻 09:00 - 10:30: Session 1 - Getting started with Markdown

  • 00 - Welcome Getting started instructions + motivation + demo
  • 01 - Composing prose with Markdown:
    • Text and headers
    • Links and images
    • Math text
    • Tables
    • The Markdown Quick Reference
    • Your turn: From plain text to embellished

☕️ 10:30 - 11:00: Morning break

💻 11:00 - 12:30: Session 2 - Putting the R in R Markdown

  • 02 - Putting the R in R Markdown:
    • Embedding R code -- in chunks and inline
    • Chunk and global options
    • Other languages
    • Output options
    • Output formats
    • Your turn: Restructure from plain R Markdown to xaringan slides or Tufte document

🍴 12:30 - 14:00: Lunch

💻 14:00 - 15:00: Session 3 - Upping your R Markdown game

  • Tables
  • Parameterized reports
  • Bibliography and citation
  • Templates

☕️ 15:00 - 15:30: Afternoon break

💻 15:30 - 17:00: Session 4 - First dip into interactivity

  • Slides: 03B-interactivity-on-the-cheap.key
  • Embedding htmlwidgets in R Markdown documents
  • Dashboards
  • First practice with shiny widgets. Use runtime: shiny

Day 2: January 16, 2019

The activities will be based on files in the apps/ directory. Each file includes a suffix like _01, _02, ....

  • Start by opening the _01 file. Edit that to complete the activity.
  • In the follow-up exercises, you can keep on going with the file you started with, or if you get lost ...
  • Open up the next file (e.g. _02) so that you have a working document for the next activity.

💻 09:00 - 10:30: Session 1 - Getting started with Shiny

  • 04 - Getting started with Shiny:
    • High level view
    • Anatomy of a Shiny app
    • UI / Server
    • File structure
    • Deploying an app

☕️ 10:30 - 11:00: Morning break

💻 11:00 - 12:30: Session 2 - Understanding reactivity

  • 05 - Understanding reactivity:
    • Reactivity 101
    • Reactive flow
    • Implementation
    • Render functions

🍴 12:30 - 13:30: Lunch

💻 13:30 - 15:00: Session 3 - Designing UI

  • Interface builder functions
  • Tabs
  • shinythemes

☕️ 15:00 - 15:30: Afternoon break

💻 15:30 - 17:00: Session 4 - Dashboards

  • What's in a dashboard?
  • flexdashboards
  • Where to go next?

Setup instructions

Install all packages we will need

from_cran <- c("shiny", "rmarkdown", 
               "DT", "devtools", "flexdashboard", "gapminder",
               "rticles", "shinydashboard", "shinythemes", 
               "tidyverse", "tufte", "xaringan")

install.packages(from_cran, repos = "http://cran.rstudio.com")

Load all packages we just installed

lapply(from_cran, library, character.only = TRUE)