'Htmlwidgets' in Responsive 'iframes'

Provides two functions 'frameableWidget()', and 'frameWidget()'. The 'frameableWidget()' is used to add extra code to a 'htmlwidget' which allows is to be rendered correctly inside a responsive 'iframe'. The 'frameWidget()' is a 'htmlwidget' which displays content of another 'htmlwidget' inside a responsive 'iframe'. These functions allow for easier embedding of 'htmlwidgets' in content management systems such as 'wordpress', 'blogger' etc. They also allow for separation of widget content from main HTML content where CSS of the main HTML could interfere with the widget.


widgetframe 0.3.1


  • Fixed some documentation inconsistencies.

widgetframe 0.3.0

New Features

  • Now supports lazy loading of widget iframes.


  • Now works with blogdown thanks to Yihui Xie!
  • Upgraded to pym.js version 1.3.1

widgetframe 0.2.0

New Stuff

  • Upgraded pym.js lib to 1.2.0
  • Rewrote how widgetframe is knitted and added a vignette to describe the same.

widgetframe 0.1.0

New Stuff

  • Initial version with support for RMarkdown docs/sites, Xaringan Presentations, & Flexdashboard.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.3.1 by Bhaskar Karambelkar, a year ago

https://github.com/bhaskarvk/widgetframe, https://bhaskarvk.github.io/widgetframe/

Report a bug at https://github.com/bhaskarvk/widgetframe/issues

Browse source code at https://github.com/cran/widgetframe

Authors: Bhaskar Karambelkar [aut, cre] , Yihui Xie [ctb] , NPR Visual Team [ctb, cph] (pym.js JavaScript library) , Bjørn Klinggaard [ctb, cph] (bLazy.js JavaScript library)

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports htmltools, purrr, magrittr, utils, tools

Depends on htmlwidgets

Suggests knitr, rmarkdown

Suggested by DTAT.

See at CRAN