list_templates: List available vartors templates in a folder

Description Usage Arguments Value Author(s) See Also Examples

View source: R/list_templates.R

Description

List the file in the specified directory and check if these files are vartors templates. To detect, a file as vartors templates, the file must have one of the supported extension ('.R' or '.Rmd' for the moment) and have the tag <vartors template> in the first lines.

Usage

1
list_templates(dirpath)

Arguments

dirpath

path to the directory. If missing, the directory of the vartors package with built-in templates.

Value

Return a character vector with the names of the files which are vartors templates.

Author(s)

Joris Muller

See Also

Script templates could be imported with import_template. This function use is_vartors_template to check if a file is a vartors template.

is_vartors_template

Examples

1
2
# Get the list of built-in template
list_templates()

jomuller/vartors documentation built on May 19, 2019, 7:26 p.m.