scaffoldReactWidget: Create implementation scaffolding for a React.js-based HTML...

Description Usage Arguments Note

View source: R/scaffold_widget.R

Description

Add the minimal code required to implement a React.js-based HTML widget to an R package.

Usage

1

Arguments

name

Name of widget

npmPkgs

Optional NPM packages upon which this widget is based which will be used to populate package.json. Should be a named list of names to versions.

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.


reactR documentation built on Feb. 22, 2021, 5:05 p.m.