scaffold_output: Scaffold Shiny Output

View source: R/output.R

scaffold_outputR Documentation

Scaffold Shiny Output

Description

Sets basic structure for a shiny input.

Usage

scaffold_output(name, edit = interactive())

Arguments

name

Name of output, will define internal name binding and CSS class.

edit

Automatically open pertinent files.

Value

TRUE (invisibly) if successfully run.

Examples

if(interactive()){
# current directory
wd <- getwd()

# create a mock up ambiorix project
tmp <- tmp_package()

# move to package
setwd(tmp)

# scaffold ambiorix
scaffold_output()

# clean up
setwd(wd)
tmp_delete(tmp)
}


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