scaffold_extension: Shiny Extension

View source: R/extension.R

scaffold_extensionR Documentation

Shiny Extension

Description

Creates the basic structure for a shiny extension.

Usage

scaffold_extension(name, edit = interactive())

Arguments

name

Name of extension used to define file names and functions.

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_extension()

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


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