R/graffiti.R

Defines functions graffiti

Documented in graffiti

#' Run R-Shiny dashboard
#'
#' @examples
#' \donttest{
#' # run R-Shiny dashboard
#' graffiti()
#' }
#' @export
graffiti <- function() {
  appDir <- system.file("shiny", "graffiti-app", package = "graffiti")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `graffiti`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal", launch.browser = TRUE)
}
hadrilec/graffiti-poc documentation built on Sept. 20, 2022, 2:01 p.m.