scaffold_widget {packer} | R Documentation |
Scaffold Widget
Description
Creates basic structure for a widget.
Usage
scaffold_widget(name, edit = interactive())
Arguments
name |
Name of widget, also passed to |
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)
}
[Package packer version 0.1.3 Index]