Learn R Programming

lineupjs (version 4.6.0)

taggleOutput: Shiny bindings for taggle

Description

Output and render functions for using taggle within Shiny applications and interactive Rmd documents.

Usage

taggleOutput(outputId, width = "100%", height = "800px")

renderTaggle(expr, env = parent.frame(), quoted = FALSE)

Value

An output or render function that enables the use of the widget within Shiny applications.

Arguments

outputId

output variable to read from

width, height

Must be a valid CSS unit (like '100%', '800px', 'auto') or a number, which will be coerced to a string and have 'px' appended.

expr

An expression that generates a taggle

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

Examples

Run this code
# !formatR
library(shiny)
app <- shinyApp(
  ui = fluidPage(taggleOutput("taggle")),
  server = function(input, output) {
    taggle <- lineupBuilder(iris) |> buildTaggle()
    output$taggle <- renderTaggle(taggle)
  }
)

# \donttest{
if (interactive()) app
# }

Run the code above in your browser using DataLab