example/app.R

library(shiny)
library(magrittr)
library(shiny.whirligig)

ui <- fluidPage(
  uiOutput(outputId = 'example',
           width = '100wv',
           height = '100vh') %>% withWhirligig
)

server <- function(input, output) {
  output$example <- renderUI({
    Sys.sleep(10)

    tags$p('Hello from the otherside!')
  })
}

app <- shinyApp(ui = ui, server = server)
lawrencecrane/shiny.whirligig documentation built on June 1, 2019, 12:52 p.m.