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

Try the einet package in your browser

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

einet documentation built on April 24, 2020, 1:06 a.m.