R/demo.R

Defines functions demo

Documented in demo

#' Run shiny demo
#' @export
demo <- function() {
  appDir <- system.file("shiny-example", package = "stochvolTMB")
  if (appDir == "") {
    stop("Could not find folder for shiny app. Try to re-install `stochvolTMB`.", 
         call. = FALSE)
  }
  shiny::runApp(appDir, display.mode = "normal")
}
JensWahl/stochvolTMB documentation built on Feb. 5, 2025, 9:28 p.m.