createScript: Create files or scripts from templates

Description Usage Arguments Examples

View source: R/createScript.R

Description

Create files or scripts from brew templates supplied with the package.

Usage

1
2
3
4
5
createScript(
  new_file = file.path(tempdir(), "tmp.R"),
  template = c("script_function", "script_control"),
  notes = TRUE
)

Arguments

new_file

name of the file to be created

template

template to be used for the new file ("script_function", "script_control")

notes

logical: include notes from the template in the file

Examples

1
2
3
4
## Not run: 
createScript()

## End(Not run)

envima/envimaR documentation built on July 18, 2021, 1:40 p.m.