R/runShinyITCARES.R

Defines functions runShinyITCARES

Documented in runShinyITCARES

#' run Shiny IT-Care
#' 
#' @export
#' 
#' @import DT
#' @import shiny
#' 
#' @details
#' The user interface is divided into three columns. 
#' The left and right columns are dedicated to user inputs, 
#' whereas the middle column is dedicated to displaying the IT-CARES output. 
#' More specifically, the criteria for case selection and the criteria 
#' for exposure selection are provided in the left-hand and right-hand columns, respectively.
#' The middle column is divided into three panels,
#' i.e. the update button for generating new estimates (top), 
#' the graphical output (middle) and the tabular output (bottom).
#' 

# Function created according to deanattali
# http://deanattali.com/2015/04/21/r-package-shiny-app/

runShinyITCARES <- function() {
  appDir <- system.file("shiny-itcare", package = "ITCARES")
  
  if (appDir == ""){
    stop("Could not find Shiny app directory. Try re-installing the package.", call. = FALSE)
  }
  
  shiny::runApp(appDir, display.mode = "normal")
  return(NULL)
}
jomuller/ITCARES documentation built on May 19, 2019, 7:26 p.m.