renderHtmlWidgetList: Render a list of htmlWidgets using various tricks

Description Usage Arguments Details Value Examples

Description

Render a list of htmlWidgets using various tricks

Usage

1
renderHtmlWidgetList(widgetList, renderFunction)

Arguments

widgetList

A list of htmlWidget objects to be rendered

renderFunction

The function to render individual widgets. It can be either a name of the rendering function, e.g., "render_graph" in DiagrammeR, or the actual function to be passed to this call.

Details

This is a collection of various tricks. See the URL citations in the code. Note that this code does alliterate global variables starting with "renderHtmlWidgetList_". You may want to delete them using rm(list = ls(pattern="renderHtmlWidgetList_*")).

Value

The knitted string. This is to be included in the output by using 'r renderHtmlWidgetList(...)';

Examples

1
2
Inlcude the following in the Rmd directly
  `r require(DiagrammeR); renderHtmlWidgetList(grfDf$graph, render_graph)`

garyfeng/pdata documentation built on May 16, 2019, 5:42 p.m.