createScript: Create files or scripts from templates

View source: R/initProj.R

createScriptR Documentation

Create files or scripts from templates

Description

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

Usage

createScript(
  new_file = file.path(tempdir(), "tmp.R"),
  template = c("script_function", "script_control"),
  notes = TRUE,
  template_path = system.file(sprintf("templates/%s.brew", template[1]), package =
    "link2GI")
)

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

template_path

path to template to be used

Examples

## Not run: 
createScript()

## End(Not run)


gisma/link2GI documentation built on May 13, 2024, 11:55 p.m.