scaffoldWidget: Create implementation scaffolding for an HTML widget

Description Usage Arguments Note

View source: R/scaffold.R

Description

Add the minimal code required to implement an HTML widget to an R package.

Usage

1

Arguments

name

Name of widget

bowerPkg

Optional name of Bower package upon which this widget is based. If you specify this parameter then bower will be used to automatically download the widget's source code and dependencies and add them to the widget's YAML.

edit

Automatically open the widget's JavaScript source file after creating the scaffolding.

Note

This function must be executed from the root directory of the package you wish to add the widget to.


DnPeter/htmlwidgets documentation built on May 6, 2019, 2:50 p.m.