R/run_app.R

Defines functions run_dragon run_app

Documented in run_app run_dragon

#' Run the "dragon" Shiny Application
#'
#' @examples
#' \dontrun{
#' library(dragon)
#' dragon::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() #list(...) I have no args
  )
}


#' Run the "dragon" Shiny Application. Wrapper for dragon::run_app(). 
#'
#' @examples
#' \dontrun{
#' library(dragon)
#' dragon::run_dragon()
#' }
#'
#' @export
#' @importFrom shiny shinyApp
#' @importFrom golem with_golem_options
run_dragon <- function() {
  run_app()
}
spielmanlab/dragon documentation built on Nov. 15, 2023, 3:04 a.m.