Finds the FSLDIR from system environment or getOption("fsl.path")
for location of FSL functions
get.fsl(add_bin = TRUE)
get_fsl(add_bin = TRUE)| add_bin | Should |
|---|
NULL if FSL in path, or bash code for setting up FSL DIR
This will use Sys.getenv("FSLDIR") before getOption("fsl.path").
If the directory is not found for FSL in Sys.getenv("FSLDIR") and
getOption("fsl.path"), it will try the default directory /usr/local/fsl.