OptionsContainer: OptionsContainer

View source: R/Container_OptionsContainer.R

OptionsContainerR Documentation

OptionsContainer

Description

Container for modules in the Metaboseek Options box

Usage

OptionsContainer(
  input,
  output,
  session,
  values = reactiveValues(projectData = NULL, featureTables = NULL, MSData = NULL,
    GlobalOpts = NULL, MainPlotBox = NULL, MainTable = NULL)
)

OptionsContainerUI(id)

Arguments

input

arguments necessary for use with callModule()

output

arguments necessary for use with callModule()

session

arguments necessary for use with callModule()

values

a reactiveValues object that in effect gives read and write access to external objects

id

id to be used to define a namespace via NS() (must match id in callModule() for the server Module)

Value

The server module for this container returns nothing

Functions

  • OptionsContainer: server logic module, to be called with callModule()

  • OptionsContainerUI: returns the shiny UI elements for the Metaboseek options box, including the surrounding box

MseekContainers

Containers are used to keep the code organised and can be characterized as Modules which contain other Modules, but do not contain add any functionality themselves. They should not contain any observers and are only here to pass values into modules, or provide ways for individual Modules to interact with each other.

See Also

values for a description of the values object

Examples

## Not run: 
ui <- function(request){
MseekContainerUI("Mseek")
}
server <- function(input, output, session) {
   callModule(MseekContainer, "Mseek")
}
Create Shiny app ----
shinyApp(ui, server)

## End(Not run)


mjhelf/Mosaic documentation built on April 28, 2022, 11:32 a.m.