I have the following error, it is embarrassing because I never seen this error before.
Error in file(head.AFNI.name(an), "w") : cannot open the connection
Calls: write.AFNI -> file
In addition: Warning message:
In file(head.AFNI.name(an), "w") :
cannot open file 'mema.results/stats.mema+orig.HEAD': No such file or directory
Execution halted