scaffold_rmd {packer} | R Documentation |
Golem
Description
Creates the basic structure for golem app with JavaScript.
Usage
scaffold_rmd(react = FALSE, vue = FALSE, edit = interactive())
Arguments
react |
Whether to include React, internally runs |
vue |
Whether to include Vue, internally runs |
edit |
Automatically open pertinent files. |
Details
Only one of react
or vue
can be set to TRUE
.
Value
TRUE
(invisibly) if successfully run.
Examples
if(interactive()){
# current directory
wd <- getwd()
# create a mock up ambiorix project
tmp <- tmp_project()
# move to package
setwd(tmp)
# scaffold ambiorix
scaffold_rmd()
# clean up
setwd(wd)
tmp_delete(tmp)
}
[Package packer version 0.1.3 Index]