scaffold_widget: Scaffold Widget

View source: R/widget.R

scaffold_widgetR Documentation

Scaffold Widget

Description

Creates basic structure for a widget.

Usage

scaffold_widget(name, edit = interactive())

Arguments

name

Name of widget, also passed to htmlwidgets::scaffoldWidget().

edit

Automatically open pertinent files.

Details

Internally runs htmlwidgets::scaffoldWidget() do not run it prior to this function.

Value

TRUE (invisibly) if successfully run.

Examples

if(interactive()){
# current directory
wd <- getwd()

# create a mock up ambiorix project
tmp <- tmp_package()

# move to package
setwd(tmp)

# scaffold ambiorix
scaffold_widget()

# clean up
setwd(wd)
tmp_delete(tmp)
}


packer documentation built on May 28, 2022, 5:06 p.m.