#' 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")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.