scaffold_widget | R Documentation |
Creates basic structure for a widget.
scaffold_widget(name, edit = interactive())
name |
Name of widget, also passed to |
edit |
Automatically open pertinent files. |
Internally runs htmlwidgets::scaffoldWidget()
do not run it prior to this function.
TRUE
(invisibly) if successfully run.
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) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.