R/Interface.R

Defines functions runUserInterface

Documented in runUserInterface

#' Demo graphical user interface
#'
#' @description A shiny application that allows the user to load a properly formated CSV file,
#' benchmark the algorithms, make a prediction and download the results. Requires additional packages
#' shiny, shinycssloaders, tidyr and plotly to be installed
#'
#' @export
#' @examples
#' autoTS::runUserInterface()
#'
runUserInterface <- function() {
  appDir <- system.file("shiny-example", "Viz_autoTS", package = "autoTS")
  if (appDir == "") {
    stop("Could not find directory. Try re-installing `autoTS`.", call. = FALSE)
  } else if (interactive()) shiny::runApp(appDir, display.mode = "normal")
}
vivienroussez/autoTS documentation built on June 11, 2020, 8:45 p.m.