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()
}

Try the dragon package in your browser

Any scripts or data that you put into this service are public.

dragon documentation built on April 8, 2022, 9:07 a.m.