LoadDataModule: LoadDataModule

View source: R/Module_LoadDataModule.R

LoadDataModuleR Documentation

LoadDataModule

Description

Container Module for loading a Project Folder, MS data, or feature Tables. TODO: transition to Container format/naming

Usage

LoadDataModule(
  input,
  output,
  session,
  values = reactiveValues(projectData = NULL, featureTables = NULL, MSData = NULL,
    GlobalOpts = NULL)
)

LoadDataModuleUI(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

returns its internalValues

Functions

  • LoadDataModule: server logic

  • LoadDataModuleUI: UI elements

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: 
library(shiny)

ui <- MseekMinimalUI(SelectProjectFolderModuleUI("examplemodule"), diagnostics = T)

server <- function(input, output) {
  MseekMinimalServer(diagnostics = T, data = F, tables = F)
  
  ExampleModule <- callModule(SelectProjectFolderModule, "examplemodule", values)
}

# Create Shiny app ----
shinyApp(ui, server)


## End(Not run)


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