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")
}

Try the stochvolTMB package in your browser

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

stochvolTMB documentation built on Aug. 13, 2021, 5:07 p.m.