This functions returns the path to a template file on the file system.
Arguments
- template
[
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”.