#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.