R/run_app.R

Defines functions run_app

Documented in run_app

#' Run the Shiny Application
#'
#' @export
#' @importFrom shiny shinyApp
#' @importFrom golem with_golem_options
run_app <- function(
  name = "example", 
  time = Sys.time(), 
  port = 2811
) {
  with_golem_options(
    app = shinyApp(ui = app_ui, 
                   server = app_server, 
                   options = list(port = port)), 
    golem_opts = list(name = name, time = time)
  )
}
ColinFay/golemexample documentation built on Oct. 3, 2019, 10:52 a.m.