lineupOutput {lineupjs}R Documentation

Shiny bindings for lineup

Description

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

Usage

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

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

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.

Value

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

Examples

# !formatR
library(shiny)
app <- shinyApp(
  ui = fluidPage(lineupOutput("lineup")),
  server = function(input, output) {
    lineup <- lineupBuilder(iris) |> buildLineUp()
    output$lineup <- renderLineup(lineup)
  }
)


if (interactive()) app


[Package lineupjs version 4.6.0 Index]