This functions returns the path to a template file on the file system.
findTemplateFile(template)
[character
] Path to the file or NA
if no template template file was found.
[character(1)
]
Either a path to a brew template file (with extension “tmpl”), or a short descriptive name enabling the following heuristic for the file lookup:
“batchtools.[template].tmpl” in the path specified by the environment variable “R_BATCHTOOLS_SEARCH_PATH”.
“batchtools.[template].tmpl” in the current working directory.
“[template].tmpl” in the user config directory (see user_config_dir
); on linux this is usually “~/.config/batchtools/[template].tmpl”.
“.batchtools.[template].tmpl” in the home directory.
“[template].tmpl” in the package installation directory in the subfolder “templates”.