R/runAusBeerTax.R

Defines functions runAusBeerTax

Documented in runAusBeerTax

#' Runs the Australian Beer Tax application
#'
#' This function runs the shiny application to demonstrate the tax on your
#' beer.
#'
#' @export
runAusBeerTax <- function() {
    appDir <- system.file("shiny-examples", "ausBeerTax",
                          package = "ausBeerTax")
    if (appDir == "") {
        stop("Could not find example directory. Try re-installing `ausBeerTax`.", call. = FALSE)
    }
    shiny::runApp(appDir, display.mode = "normal")
}
SteveLane/ausBeerTax documentation built on May 30, 2019, 4:05 a.m.