Download template files from the TemplateFlow archive and optionally read them into R objects. Like [tf_ls()], entity filters support `NULL` values to exclude files containing that entity.
Arguments
- client
A `TemplateFlowClient` (optional; default global client).
- template
Template identifier (e.g., `"MNI152Lin"`).
- raise_empty
If `TRUE` (the default), error when no files match the query. Set to `FALSE` to silently return an empty character vector. Defaulted to `TRUE` so that typo'd queries fail loudly rather than producing surprising empty results.
- read
If `TRUE`, read downloaded files into R objects using appropriate readers (NIfTI via RNifti, GIFTI via gifti, JSON, TSV). Requires optional packages for neuroimaging formats.
- dest
Optional path to a directory. When supplied, fetched files are copied under `dest` preserving their `tpl-<id>/...` BIDS sub-path, and the returned paths point inside `dest`. The cache remains the canonical store; `dest` receives a snapshot copy.
- ...
Entity filters (resolution, suffix, atlas, desc, hemi, space, density, label, segmentation, cohort, scale, roi, extension, etc.). Pass `NULL` to exclude files containing that entity.