Default Directory to Store Template Brain

default_template_directory(check = FALSE)

Arguments

check

logical, check if the folder is missing, is so, create one. This option ensures the folder is always created.

Value

A directory path where template brain is stored at; see also download_N27

Details

When threeBrain.template_dir is not set or invalid, the function checks 'RAVE' (R Analysis and Visualization for 'iEEG', https://openwetware.org/wiki/RAVE) folder at home directory. If this folder is missing, then returns results from R_user_dir('threeBrain', 'data'). To override the default behavior, use options(threeBrain.template_dir=...).

Examples

default_template_directory()
#> [1] "/Users/runner/Library/Application Support/org.R-project.R/R/threeBrain/templates"