Wrapper for checking if dcm2nii binaries are installed and creating a file path to the binary requested.

dcm2nii_bin(progdir = system.file(package = "dcm2niir"),
  dcm2niicmd = c("dcm2niix", "dcm2nii_2009", "dcm2nii"))

Arguments

progdir

(character) directory of bash scripts, no user input needed unless binaries were installed elsewhere

dcm2niicmd

(character) either "dcm2niix", "dcm2nii", or "dcm2nii_2009", which are different versions of dcm2nii.

Value

Character vector of path to binary

Examples

if (FALSE) {
dcm2nii_bin()
}