I am trying to run 3dLMEr under WSL2 (running ubuntu 20.04).
I made sure I installed all the R packages.
I set up everything according to the manual and the AFNI GUI opens without problems.
But the problem seems to be related to the the xserver, “object xinit not found” happening inside R.
Could it be missing some global variable? or do I have to modify some R settings?
Apparently, it seems to try to open some window, so that it needs xinit? In that case, is there an option in 3dLMEr to supress any plots popping up?
it seems to try to open some window, so that it needs xinit? In that case, is there an option in 3dLMEr to supress any plots popping up?
Is this behavior reproducible? I cannot think of anything in 3dLMEr that requires X server.
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…
That error message is so peculiar. Without access to the data, I cannot make sense out of it. Let us know if you could get it resolved.