R/run_app.R

Defines functions run_app

Documented in run_app

#' Run the Shiny Application
#'
#' @description Runs the 'apisensr' Shiny application. This function does not
#' return; interrupt R to stop the application (usually by pressing Ctrl+C or Esc).
#'
#' @param ... Unused arguments.
#'
#' @examples
#' \dontrun{
#' run_app()
#' }
#'
#' @export
#' @importFrom shiny shinyApp
#' @importFrom golem with_golem_options
run_app <- function(...) {
  with_golem_options(
    app = shinyApp(ui = app_ui, server = app_server),
    golem_opts = list(...)
  )
}
dhaine/apisensr documentation built on Sept. 14, 2023, 12:42 a.m.