| scaffold_golem | R Documentation |
Creates the basic structure for golem app with JavaScript.
scaffold_golem( react = FALSE, vue = FALSE, framework7 = FALSE, use_cdn = TRUE, edit = interactive() )
react |
Whether to include React, internally runs |
vue |
Whether to include Vue, internally runs |
framework7 |
Whether to include Framework7, internally runs |
use_cdn |
Whether to use the CDN for react, vue or Framework7 dependencies,
this is passed to |
edit |
Automatically open pertinent files. |
Only one of react, vue or framework7 can be set to TRUE. use_cdn is
not supported for Framework7.
TRUE (invisibly) if successfully run.
if(interactive()){
# current directory
wd <- getwd()
# create a mock up golem project
tmp <- tmp_golem()
# move to package
setwd(tmp)
# scaffold golem
scaffold_golem()
# 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.