tmpl_start: Creates a new template with the specified name, in the...

Description Usage Arguments Details See Also Examples

Description

Creates a new template with the specified name, in the specified path.

Usage

1
2
tmpl_start(name, path = getwd(), add_prj = TRUE, add_pkg = TRUE,
  base_tmpl = "builtin")

Arguments

name

name of the template being created. (type: character(1))

path

path to the directory where the template should be created. If NULL will use the folder with user template. (type: character(1), default: getwd())

add_prj

if TRUE include project template to the template directory

add_pkg

if TRUE include package template in the template directory

base_tmpl

name of the package and/or project template (or path to it) to use for template creation. (type: character(1); default: builtin).

Details

Project templates are required to include a PARAMETERS file whereas package templates are required to include a DESCRIPTION file

If there is no path argument provided. The function will create the template in working directory.

See Also

Other in templates management: tmpl_list_registered

Examples

1
2
tmpl_dir <- tempfile("templ_")
tmpl_start(basename(tmpl_dir), path = tempdir())

RSuite documentation built on June 10, 2019, 5:03 p.m.