Finds the FSL version from FSLDIR/etc/fslversion
fsl_version(full = FALSE)
fslversion()
fsl_version_gt5()
provide the full version, versus the numeric version
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.
This will use fsldir()
to get the directory
if (have_fsl()) {
fslversion()
fsl_version()
}
#> [1] "6.0.4"