inst/examples/busy/app.R

library(shiny)
library(shinytitle)

ui <- fluidPage(
  title = "shinytitle Example",
  use_shiny_title(),
  busy_window_title(),
  inputPanel(actionButton("button2", "Sleep and Plot Generation")),
  plotOutput("plt")
)

server <- function(input, output, session) {
  plt <- eventReactive(input$button2, {
    Sys.sleep(3)
    plot(mtcars$cyl, mtcars$disp)
  })

  output$plt <- renderPlot(plt())
}

shinyApp(ui, server)

Try the shinytitle package in your browser

Any scripts or data that you put into this service are public.

shinytitle documentation built on June 16, 2021, 5:08 p.m.