missingDataModal: Missing information modal template

View source: R/utils_interface.R

loadRequiredDataR Documentation

Missing information modal template

Description

Missing information modal template

Usage

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

## 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)

nuno-agostinho/psichomics documentation built on Feb. 11, 2024, 11:16 p.m.