A framework for creating HTML widgets that render in various contexts including the R console, 'R Markdown' documents, and 'Shiny' web applications.
All files and directories under the
inst/htmlwidgets/ directory of
a widget package will be copied when a widget is rendered due to an
unintended change in #306. Only the single
WIDGET.js file should be
WIDGET is the widget name). Fixed via #312.
Support for async Shiny. Widget render functions that use the default
htmlwidgets::shinyRenderWidget can receive
promises of widget objects (you can, of course, continue to use
regular widget objects as well).
See https://rstudio.github.io/promises for more about async Shiny.
Use RStudio Page Viewer for full page widgets.
Fix #297: Setting background in saveWidget() is broken
Starting with R 3.4.0, a "Calling 'structure(NULL, *)' is deprecated" warning would occur when shinyRenderWidget encountered a NULL value. (#269)
Fix edge case where using dynamic HTML dependencies from a widget binding's JS factory function would fail.
Export getDependency function
onRender hooks were firing too early when used in Shiny apps.
Widget IDs: only restore random.seed when non-NULL
Pass knitr options to saveWidget
Ensure that scaffoldWidget opens files correctly within RStudio
hidden.bs.collapse now so that widgets inside the Bootstrap collapse
class can be displayed
Fix references to vignettes in documentation
Add elementId parameter to widget function generated by scaffoldWidget
More robust method of generating unique widget IDs
Modify advanced and sizing vignettes to use new style widget declarations
prependContent functions for adding HTML
to a widget rendered in a static context (i.e. R console or Rmd)
Fix a bug where the string "" in the widget data caused
saveWidget() to have malformed output. (#168)
Tweak pandoc conversion used in saveWidget to prevent hanging with large htmlwidget script data elements (use "markdown" rather than "markdown-strict" as input format)
Increase pandoc stack size to 512M for saveWidget (often required for e.g. larger embedded leaflet maps). Stack size can also be controlled by the pandoc.stack.size option.
Import latest version of with_pandoc_safe_environment from rmarkdown
Fix issue that prevented calling renderValue() from within resize()
Add background parameter to saveWidget function
Fix a bug where "" appearing in widget data would break parsing
Fix a bug where multiple widgets on a page caused all but one to miss resize events
Sync vignettes with contents of htmlwidgets website
Use minified files while scaffolding widget wherever available
Suppress viewing widgets in non-interactive R sessions by default
Export the HTMLWidgets.staticRender function
Add a preRenderHook for widgets
Use jsonlite rather than RJSONIO for JSON serialization
Call widget.resize in more situations