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"))
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. |
Character vector of path to binary
if (FALSE) {
dcm2nii_bin()
}