Description Usage Arguments Value Author(s) See Also Examples
View source: R/list_templates.R
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.
1 | list_templates(dirpath)
|
dirpath |
path to the directory. If missing, the directory of the vartors package with built-in templates. |
Return a character vector with the names of the files which are vartors templates.
Joris Muller
Script templates could be imported with import_template
. This function use is_vartors_template
to check if a file is a vartors template.
1 2 | # Get the list of built-in template
list_templates()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.