diffr2-shiny: Wrapper functions for using 'diffr2' in 'shiny'

diffr2OutputR Documentation

Wrapper functions for using diffr2 in shiny

Description

Use diffr2Output() to create a UI element, and renderDiffr2() to render the diffr2 widget.

Usage

diffr2Output(outputId, width = "100%", height = "400px")

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

Arguments

outputId

output variable to read from

width, height

the width and height of the diffr2 widget

expr

An expression that generates an HTML widget (or a promise of an HTML widget).

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.

Details

When calling renderDiffr2() make sure that divname matches the selected shiny output name. The div name is used to attach the diff2html output. Otherwise the canvas will be blank.


JanMarvin/diffr2 documentation built on Dec. 27, 2024, 12:12 p.m.