get_fs {freesurfer} | R Documentation |
Create command declaring FREESURFER_HOME
Description
Finds the Freesurfer from system environment or getOption("freesurfer.path")
for location of Freesurfer functions
Usage
get_fs(bin_app = c("bin", "mni/bin", ""))
Arguments
bin_app |
Should |
Value
NULL if Freesurfer in path, or bash code for setting up Freesurfer DIR
Note
This will use Sys.getenv("FREESURFER_HOME")
before getOption("freesurfer.path")
.
If the directory is not found for Freesurfer in Sys.getenv("FreesurferDIR")
and
getOption("freesurfer.path")
, it will try the default directory /usr/local/freesurfer
.
Examples
if (have_fs()) {
get_fs()
}
[Package freesurfer version 1.6.10 Index]