Finds the Freesurfer version from FREESURFER_HOME/build-stamp.txt

fs_version()

Value

If the version file does not exist, it will throw a warning, but it will return an empty string. Otherwise it will be a string of the version.

Note

This will use fs_dir() to get the directory of FREESURFER

Examples

if (have_fs()) {
 fs_version()
}