@Remi-Gau and @marcobarilari FYI, even if the src folder is clean from previous .ps files, still the bidsSpatialPrepro function crashes here due to copyGraphWindowOutput function:
SPM12: spm_imcalc (v6961) 22:26:47 - 10/11/2020
========================================================================
ImCalc Image: /Users/battal/Cerens_files/fMRI/Processed/RhythmCateg/Pilots/RhythmFT/derivatives/cpp_spm/sub-001/ses-001/anat/msub-001_ses-001_T1w_mask.nii
10-Nov-2020 22:26:48 - Done 'Image Calculator'
10-Nov-2020 22:26:48 - Done
Error using movefile
All arguments must be character vectors.
Error in copyGraphWindownOutput (line 54)
movefile( ...
Error in copyFigures (line 20)
imgNb = copyGraphWindownOutput(opt, subID, 'realign');
Error in bidsSpatialPrepro (line 101)
copyFigures(BIDS, opt, subID);
Error in RhythmFT_run (line 29)
bidsSpatialPrepro(opt);
Originally posted by @CerenB in #113 (comment)