R/shimmer_shiny.R

#' Runs a shimmer simulation inside a shiny app.
#'
#' @seealso [shimmer()]
#' @export
shimmer_shiny <- function() {
  app_dir <- system.file("shiny-examples/shimmer", package = "shimmer")
  if (app_dir == "") {
    stop("Could not find example directory. Try re-installing `shimmer`.", call. = FALSE)
  }

  shiny::runApp(app_dir, display.mode = "normal")
}
andrie/shimmer documentation built on May 3, 2019, 3:39 p.m.