Shiny

Welcome to the MeDaScIn 2017 Shiny workshop homepage. Below you will find all slides and materials for the course.

Information

Shiny is an R package which enables users to turn an R analysis into an interactive web application. Shiny is simple to get started with for an R programmer, because it requires no knowledge of web technologies such as HTML, CSS, or Javascript. However, Shiny is also immensely powerful. It uses a reactive programming design so that results are automatically updated when only when their dependencies change.

In this training workshop, we will introduce and motivate why Shiny should be used. We will then discuss the structure and syntax of a Shiny app, and begin exploring the different inputs and outputs available to us when constructing them. Following this, we will cover reactive programming and user interface design and apply it to our Shiny apps. We will wrap up with some information on debugging and addon packages, before launching to a Shiny workshop in which we will help people construct their own Shiny app from scratch.

Instructors

Dr. Eric Hare, Chief Data Scientist, Omni Analytics Group

Dr. Lawrence Mosley, CEO, Omni Analytics Group

Content

The slides are posted below. They are dynamically rendered RMarkdown documents with embedded Shiny applications, which means they can take some time to load. If you are having any difficulty, a static version of the slides (in standard HTML format) are available here.

Schedule

TimeSlidesCode
09:00 - 09:15Requirements / Setuprequirements.R
09:15 - 10:15What is Shiny?challenge1_solution.R
10:15 - 10:45Structure of a Shiny Apphelloshiny.R
10:45 - 11:00Break
11:00 - 12:00Inputs and Outputsapp_with_slider.R
app_with_numeric.R
app_with_text.R
app_with_select.R
app_with_checkbox.R
app_with_plot.R
app_with_table.R
app_with_datatable.R
app_with_outputtext.R
challenge2_solution.R
challenge3_solution.R
12:00 - 13:00Lunch
13:00 - 14:00Reactive Programmingreactive.R
observe.R
challenge4_solution.R
14:00 - 14:30User Interface Designapp_with_tabs.R
app_with_navbar.R
app_with_conditional.R
challenge5_solution.R
14:30 - 14:45Break
14:45 - 15:15Debugging and Deployingdebugging.R
15:15 - 15:30Useful Extras
15:30 - 16:45Building Workshop
16:45 - 17:00Wrap-Up and Questions
Back to Top