-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.R
More file actions
23 lines (20 loc) · 489 Bytes
/
app.R
File metadata and controls
23 lines (20 loc) · 489 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
library(shiny)
library(shinydisconnect)
ui <- fluidPage(
disconnectMessage(
text = "Your session timed out, reload the application.",
refresh = "Reload now",
background = "#f89f43",
colour = "white",
overlayColour = "grey",
overlayOpacity = 0.3,
refreshColour = "brown"
),
actionButton("disconnect", "Disconnect the app")
)
server <- function(input, output, session) {
observeEvent(input$disconnect, {
session$close()
})
}
shinyApp(ui, server)