R/BattingProfile.R

Defines functions BattingProfile

Documented in BattingProfile

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

  shiny::runApp(appDir, display.mode = "normal")
}
bayesball/ShinyBaseball documentation built on March 26, 2024, 9:26 a.m.