coreOTUModule {PathoStat}R Documentation

Server function for Core OTU Module

Description

This function provides the server logic for the Core OTU tab. This function is not called directly; instead, it should be invoked within the Shiny app's server function using the callModule function. See http://shiny.rstudio.com/articles/modules.html for information about this design pattern.

Usage

coreOTUModule(input, output, session, pstat)

Arguments

input

Shiny server input object created by callModule

output

Shiny server output object created by callModule

session

Session created by callModule

pstat

PathoStat object (third argument to callModule).

Details

The callModule function should be invoked with this function as the first argument. callModule is responsible for creating the namespaced input, output, and session arguments. The second argument to callModule is the ID to be used for the namespace and must match the id argument provided to coreOTUModuleUI. The third argument to callModule should be a PathoStat object from the app's server function, and is passed to this function as the pstat argument.

Value

None

See Also

coreOTUModuleUI for the UI function, callModule to see how to invoke this function, or http://shiny.rstudio.com/articles/modules.html for more information about Shiny modules.

Examples

# This function is not called directly; instead, it should be invoked within
# the app's server function using the shiny::callModule function.
## Not run: 
shinyServer(function(input, output, session) {
    shinyInput <- getShinyInput()
    pstat <- shinyInput$pstat
    callModule( coreOTUModule, "coreOTUModule", pstat )
}

## End(Not run)


[Package PathoStat version 1.4.1 Index]