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

  plot1vars <- callModule(mod_varselect_server, "plot1_vars")
  plot2vars <- callModule(mod_varselect_server, "plot2_vars")
  
  dat <- callModule(
    mod_scatterplot_server,
    "plots",
    dataset = ames,
    plot1vars = plot1vars,
    plot2vars = plot2vars,
    label = reactive({ input$label })
  )
  
  callModule(mod_dataviewer_server, "dataviewer", dat)
}
MayaGans/golem_demo documentation built on May 14, 2020, 12:32 a.m.