Description Usage Arguments Details See Also Examples
Creates a new template with the specified name, in the specified path.
1 2 | tmpl_start(name, path = getwd(), add_prj = TRUE, add_pkg = TRUE,
base_tmpl = "builtin")
|
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). |
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.
Other in templates management: tmpl_list_registered
1 2 | tmpl_dir <- tempfile("templ_")
tmpl_start(basename(tmpl_dir), path = tempdir())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.