# NOT RUN {
if (interactive()) {
library(shiny)
ui <- fluidPage(
title = "Initial Title",
use_shiny_title(),
busy_window_title("Sleeping..."),
actionButton("button", "Click me for a 5 second busy title")
)
server <- function(input, output, session) {
observeEvent(input$button, Sys.sleep(5))
}
shinyApp(ui, server)
}
# }
Run the code above in your browser using DataLab