renderLcars | R Documentation |
Server-side functions for creating dynamic lcarBox
and
lcarsSweep
.
renderLcarsBox(expr, env = parent.frame(), quoted = FALSE)
renderLcarsSweep(expr, env = parent.frame(), quoted = FALSE)
expr |
An expression that returns a Shiny tag object, HTML, or a list of such objects. |
env |
The environment in which to evaluate |
quoted |
Is |
lcarsOutput
for the corresponding UI-side function.
## 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.