Learn R Programming

packer (version 0.1.3)

scaffold_rmd: 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 apply_react() and adapts the srcjs/index.js template for React.

vue

Whether to include Vue, internally runs apply_vue() and adapts the srcjs/index.js template for Vue.

edit

Automatically open pertinent files.

Value

TRUE (invisibly) if successfully run.

Details

Only one of react or vue can be set to TRUE.

Examples

Run this code
# NOT RUN {
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)
}

# }

Run the code above in your browser using DataLab