missingDataModal: Missing information modal template

Description Usage Arguments Value Examples

View source: R/analysis.R

Description

Missing information modal template

Usage

1
2
3
4
5
loadRequiredData(modal = NULL)

missingDataModal(session, dataType, buttonId)

missingDataGuide(dataType)

Arguments

modal

Character: modal identifier

session

Shiny session

dataType

Character: type of data missing

buttonId

Character: identifier of button to take user to load missing data

Value

NULL (function is only used to modify the Shiny session's state or internal variables)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
if (shiny::isRunning()) {
    session <- session$ns
    buttonInput <- "takeMeThere"
    buttonId <- ns(buttonInput)
    dataType <- "Inclusion levels"
    missingDataModal(session, buttonId, dataType)
    observeEvent(input[[buttonInput]], missingDataGuide(dataType))
}

## End(Not run)

psichomics documentation built on Nov. 8, 2020, 5:44 p.m.