disconnectAutoReload: Automatically reconnect shiny application when network...

Description Usage Details

View source: R/shinyutils.R

Description

Shiny application will show "Disconnected from server" pop up dialog box with a "Reload" button and grey out all the shiny application when network not available. This is annoying and user has to click the "Reload" button to reconnect to server. This function helps automatically reconnect and reload application whenever network is available again. Check in 1 second period.

Usage

1

Details

Add disconnectAutoReload() to shiny server(session,input,output)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(shiny)
library(shinyjs)
library(databunny)

ui <- fluidPage(
  titlePanel("Shiny Auto Reconnect"),
  "This shiny app will auto reconnect when ever network available again."
)

server <- function(input, output) {
disconnectAutoReload()
}

shinyApp(ui = ui, server = server)

databunnysg/rstudioaddins documentation built on May 27, 2020, 4:07 p.m.