R/app.R

Defines functions run_example

Documented in run_example

#' Start shiny app
#'
#' This starts an example shiny app that allows for user inputed graph objects.
#'
#' @export
run_example <- function() {
  app_dir <- system.file("app", package = "einet")

  if (app_dir == "") {
    stop("Could not find shiny app. Try re-installing `einet`.", call. = FALSE)
  }

  shiny::runApp(app_dir, display.mode = "normal")
}
travisbyrum/einet documentation built on Jan. 4, 2022, 10:32 p.m.