R/PredictingBattingRates.R

Defines functions PredictingBattingRates

PredictingBattingRates <- function() {
  appDir <- system.file("shiny-examples",
                        "PredictingBattingRates",
                        package = "ShinyBaseball")
  if (appDir == "") {
    stop("Could not find example directory. Try re-installing `TeachBayes`.", call. = FALSE)
  }

  shiny::runApp(appDir, display.mode = "normal")
}
bayesball/ShinyBayes documentation built on April 30, 2024, 8:51 a.m.