scaffold_extension: Shiny Extension

Description Usage Arguments Value Examples

View source: R/extension.R

Description

Creates the basic structure for a shiny extension.

Usage

1

Arguments

name

Name of extension used to define file names and functions.

edit

Automatically open pertinent files.

Value

TRUE (invisibly) if successfully run.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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 Aug. 14, 2021, 5:07 p.m.