R/run_gratis_app.R

Defines functions app_gratis

Documented in app_gratis

#' Web Application to generate time series with controllable features.
#'
#' @return
#' NULL
#
# @examples
# # Not Run
# run_gratis_app <- function() {
#   appDir <- system.file("shiny", "gratis", package = "gratis")
#   if (appDir == "") {
#     stop("Could not find example directory. Try re-installing `gratis`.", call. = FALSE)
#   }
# 
#   shiny::runApp(appDir, display.mode = "normal", quiet = TRUE)
# }

#' @rdname app
#' @export
app_gratis <- function() {
  appDir <- system.file("shiny", "app", package = "gratis")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `gratis`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal", quiet = TRUE)
}

Try the gratis package in your browser

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

gratis documentation built on May 29, 2024, 5:36 a.m.