Ok I found a solution: Creating a file
/.Rprofile in the user home directory with the line
xinit = "NA" solves the issue, which is probably only showing up under WSL2 which contains some changes about xserver compared to WSL1.
However, I receive now an unrelated error:
Error in inData[ii, jj, kk, ] : no 'dimnames' attribute for array
Execution halted
Probably because I use nifti files instead of BRIK? I hope converting them to BRIK will add default values where needed...
Edited 1 time(s). Last edit at 07/08/2020 11:25PM by paranoidandroid.