R/run_sneakers.R

#' Launch Sneakers Shiny Application
#'
#' Opens an interactive Shiny application that shows current sneaker prices
#' and attempts to forecast future prices.
#' @export
#' @importFrom shiny runApp
run_sneakers = function() {
  
  appDir = system.file("sneakersApp", package = "sneakers")
  if (appDir == "") {
    stop("Could not find `shiny` directory. Try re-installing `sneakers`.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
}
stat385uiuc/demo-sneaker-project documentation built on May 9, 2019, 2:25 a.m.