R/runExample.R

#' @title  MiBand Example
#' @description  an interative tutorial
#' @export
#' @author Borg
runExample <- function() {
  appDir <- system.file("shiny-examples", "MiBandApp", package = "MiBand")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `MiBand`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
BigBorg/MiBand_R_Package documentation built on May 5, 2019, 2:42 p.m.