Server-side functions for creating dynamic lcarBox()
and lcarsSweep()
.
renderLcarsBox(expr, env = parent.frame(), quoted = FALSE)
renderLcarsSweep(expr, env = parent.frame(), quoted = FALSE)
An expression that returns a Shiny tag object, HTML, or a list of such objects.
The environment in which to evaluate expr
.
Is expr
a quoted expression (with quote()
)? This
is useful if you want to save an expression in a variable.
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)
}