## ----setup, include = FALSE--------------------------------------------------- knitr::opts_chunk$set( eval = freesurfer::have_fs(), prompt = FALSE, message = FALSE, warning = FALSE ) options(freesurfer.verbose = FALSE) ## ----fs_sitrep---------------------------------------------------------------- library(freesurfer) fs_sitrep() ## ----have_fs_example---------------------------------------------------------- have_fs() if (have_fs()) { print("Freesurfer is installed! Huzzah!") } ## ----fs_output_example-------------------------------------------------------- get_fs_output() fs_imgext() ## ----------------------------------------------------------------------------- # Generate a shell command to set up FreeSurfer with the default `bin` directory get_fs(bin_app = "bin") # Generate a shell command to include MNI environment setup # This is important if you plan to use FreeSurfer's MNI tools. get_fs(bin_app = "mni/bin") ## ----fs_subj_dir_example------------------------------------------------------ fs_subj_dir()