View source: R/scaffold_widget.R
scaffoldReactWidget | R Documentation |
Add the minimal code required to implement a React.js-based HTML widget to an R package.
scaffoldReactWidget(name, npmPkgs = NULL, edit = interactive())
name |
Name of widget |
npmPkgs |
Optional NPM packages upon which
this widget is based which will be used to populate |
edit |
Automatically open the widget's JavaScript source file after creating the scaffolding. |
This function must be executed from the root directory of the package you wish to add the widget to.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.