R/app.R

Defines functions shiny_app

Documented in shiny_app

#' Run shiny app to compute MIMSunit values from files
#'
#' \code{shiny_app} runs a local shiny app that provides a user friendly interface
#' to compute mims unit values from files stored in mhealth or actigraph format.
#'
#' @section How is it used in MIMS-unit algorithm?: This provides a user friendly
#' graphical interface to load local files, call \code{\link{mims_unit_from_files}}
#' and display the results as an interactive graph.
#'
#' @param options The options passed to \code{\link[shiny]{shinyApp}}.
#'
#' @family Top level API functions
#' @export
#' @examples
#'   \dontrun{
#'   shiny_app()
#'   }
shiny_app <- function(options = list()) {
  shiny::shinyAppDir(appDir = system.file("app", package='MIMSunit'), options = options)
}

Try the MIMSunit package in your browser

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

MIMSunit documentation built on June 21, 2022, 5:06 p.m.