R/ez_app.R

Defines functions ez_app

Documented in ez_app

#' ez_app
#' @param data A data frame
#' @export
#' @examples
#' \dontrun{
#' library(tsibble)
#' library(tsibbledata)
#' ez_app(ansett)
#' }
ez_app = function(data = NULL) {

  ui = ez_ui(data)

  server = ez_server(data)

  shiny::runGadget(app = shiny::shinyApp(ui = ui,
                                         server = server),
                   viewer = shiny::browserViewer())

}

Try the ezplot package in your browser

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

ezplot documentation built on Nov. 26, 2023, 5:07 p.m.