Learn R Programming

lcars (version 0.4.1)

lcarsOutput: Create an LCARS output (client side)

Description

UI-side functions for creating dynamic lcarBox() and lcarsSweep().

Usage

lcarsBoxOutput(outputId)

lcarsSweepOutput(outputId)

Arguments

outputId

Output variable name.

See Also

renderLcars() for the corresponding server-side function.

Examples

Run this code
## Only run examples in interactive R sessions
if (interactive()) {

  ui <- lcarsPage(
    lcarsBoxOutput("box"),
    lcarsSweepOutput("sweep")
  )

  server <- function(input, output) {
    output$box <- renderLcarsBox({
      lcarsBox()
    })
    output$sweep <- renderLcarsSweep({
      lcarsSweep()
    })
  }

  shinyApp(ui, server)
}

Run the code above in your browser using DataLab