R/run_app.R

Defines functions run_app

Documented in run_app

#' Run the covidscreen Application
#'
#' Use this function to run the Shiny interface to {covidscreen} in an R session
#'
#' @param ... arguments to pass to golem_opts.
#' See \code{?golem::get_golem_options} for more details.
#' @inheritParams shiny::shinyApp
#'
#' @export
#' @importFrom shiny shinyApp
#' @importFrom golem with_golem_options
run_app <- function(
                    onStart = NULL,
                    options = list(),
                    enableBookmarking = NULL,
                    uiPattern = "/",
                    ...
) {
  with_golem_options(
    app = shinyApp(
      ui = app_ui,
      server = app_server,
      onStart = onStart,
      options = options,
      enableBookmarking = enableBookmarking,
      uiPattern = uiPattern
    ),
    golem_opts = list(...)
  )
}
jesse-smith/covidscreen documentation built on June 15, 2022, 7:46 p.m.