run_shiny: Run the McMasterPandemic Shiny

View source: R/run_shiny.R

run_shinyR Documentation

Run the McMasterPandemic Shiny

Description

run_shiny() is an example of a single-file Shiny app in that it defines a UI object and a server method to handle that object. A benefit is that Roxygen import tags only need to be called once to become available to the entire shiny, and it's easy to run the shiny as well. After both the ui object and server function are defined, browserManager is called, which sets the viewing environment that the Shiny runs in. Anywhere with a tag$html call is either a CSS or HTML tag to change certain visual aspects of the shiny. In addition, many ui elements are rendered in the server function and passed to ui with renderUI. RenderHTML is another wrapper for this as well. This lets us make UI elements which depend on input from the UI itself.

Usage

run_shiny(useBrowser = TRUE, usingOnline = FALSE)

Arguments

useBrowser

A logical indicating whether to run the Shiny in the default browser or in a seperate window generated by RStudio.

usingOnline

A logical indicating whether the app is being run on shinyapps.io or not.


ZachLevine-11/McMasterPandemicShiny documentation built on Feb. 4, 2023, 9:09 a.m.