-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathapp.R
More file actions
25 lines (22 loc) · 487 Bytes
/
app.R
File metadata and controls
25 lines (22 loc) · 487 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
library(shiny)
library(shinydisconnect)
ui <- fluidPage(
disconnectMessage(
text = "Your session has timed out.",
refresh = "",
background = "#646464e6",
size = 36,
width = "full",
top = "center",
colour = "white",
overlayColour = "#999",
overlayOpacity = 0.4
),
actionButton("disconnect", "Disconnect the app")
)
server <- function(input, output, session) {
observeEvent(input$disconnect, {
session$close()
})
}
shinyApp(ui, server)