Learn R Programming

freesurfer (version 1.6.10)

get_fs: 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", ""))

Value

NULL if Freesurfer in path, or bash code for setting up Freesurfer DIR

Arguments

bin_app

Should bin be added to the freesurfer path? All executables are assumed to be in FREESURFER_HOME/bin/. If not, and bin_app = "", they will be assumed to be in FREESURFER_HOME/.

Examples

Run this code
if (have_fs()) {
get_fs()
}

Run the code above in your browser using DataLab