R/run_app.R

Defines functions designApp

Documented in designApp

#' Run the Shiny Application
#'
#' @description
#' Runs the designer Shiny application.
#'
#' For more information about how the application works, either run the "Help" guide in-app, or run
#' \code{vignette("designer")}.
#'
#' @param ... arguments to pass to \code{golem_opts}. See \code{\link[golem]{get_golem_options}} for more details.
#' @inheritParams shiny::shinyApp
#'
#' @return
#' This function does not return a value; interrupt R to stop the application (usually by pressing Ctrl+C or Esc).
#'
#' @examplesIf interactive()
#' designApp()
#'
#' @export
designApp <- function(onStart = NULL, options = list(), enableBookmarking = "url", uiPattern = "/", ...) {
  golem::with_golem_options(
    app = shinyApp(
      ui = appUI,
      server = appServer,
      onStart = onStart,
      options = options,
      enableBookmarking = enableBookmarking,
      uiPattern = uiPattern
    ),
    golem_opts = list(...)
  )
}

Try the designer package in your browser

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

designer documentation built on Aug. 20, 2023, 5:06 p.m.