R/app_server.R

Defines functions app_server

#' The application server-side
#' 
#' @param input,output,session Internal parameters for {shiny}. 
#'     DO NOT REMOVE.
#' @import shiny
#' @noRd
app_server <- function(input, output, session) {
  # List the first level callModules here
  # https://stackoverflow.com/questions/46075184/scoping-issue-with-updatenavbarpage-function-from-within-shiny-module
  metadata_rv <- callModule(DSM2VizTool::metadataServer, "metadataUI", x = session)
  timeseries_rv <- callModule(DSM2VizTool::timeseriesServer, "timeseriesUI", x = session, metadata_rv)
  callModule(DSM2VizTool::comparativeServer, "comparativeUI", metadata_rv, timeseries_rv)
}
fishsciences/DSM2VizTool documentation built on June 19, 2020, 7:54 p.m.