scaffold_rmd: Golem

View source: R/rmd.R

scaffold_rmdR 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 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.

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)
}


packer documentation built on May 28, 2022, 5:06 p.m.