R/server.R

Defines functions server

server = function(input, output, session) {
  options(shiny.maxRequestSize = 300 * 1024 ^ 2) # 300 MB

  # Esto causa que cuando se refresque la pagina, se cierra la aplicacion.
  # session$onSessionEnded(shiny::stopApp)
  rvs = reactiveValues(datos = NULL, datos_replicas = NULL)

  shinyalert::shinyalert(
    imageUrl = "www/Logo.jpg",
    imageWidth = "400",
    imageHeight = "250",
    closeOnClickOutside = TRUE,
    showConfirmButton = FALSE
  )

  datosServer("datos", rvs)
  indicadoresServer("indicadores", rvs)
}
tomicapretto/cemrepboot documentation built on Dec. 31, 2020, 8:43 a.m.