R/shiny_app.R

Defines functions als_binary run_app runALSBinaryApp

Documented in als_binary runALSBinaryApp run_app

#' Run ALS-Binary Shiny App
#'
#' @return A \code{shiny.appobj} object representing the Shiny application.
#' @importFrom DT renderDT datatable
#' @importFrom readr read_delim
#' @importFrom readxl read_excel
#' @export
runALSBinaryApp <- function() {
  app_dir <- system.file("app", package = "ALSBinary")
  if (app_dir == "") {
    stop("Could not find app directory. Try re-installing `ALSBinary`.", call. = FALSE)
  }
  
  # This creates the app object without blocking the R console or test runner
  shiny::shinyAppDir(app_dir)
}

#' Alias: run_app
#'
#' @return A \code{shiny.appobj} object representing the Shiny application.
#' @export
run_app <- function() {
  runALSBinaryApp()
}

#' Alias: als_binary
#'
#' @return A \code{shiny.appobj} object representing the Shiny application.
#' @export
als_binary <- function() {
  runALSBinaryApp()
}

Try the ALSBinary package in your browser

Any scripts or data that you put into this service are public.

ALSBinary documentation built on Aug. 9, 2026, 5:06 p.m.