This function checks whether the output from dcm2nii runs correctly in that only one nifti file is returned if only one exists

check_dcm2nii(dcm2nii_output, include_json = TRUE)

Arguments

dcm2nii_output

Output from dcm2nii command, must have nii_after element

include_json

Include JSON file if in the output?

Value

Character vector of unique nifti filenames