Dear all,

I need to run some R scripts (stats language) on a cluster node, which depend on an xterm environment. R crashes if it does not find it.

I tried to run the script as

xterm -e "R CMD BATCH sim_trios2L.r"

but got the error message:

xterm Xt error: Can't open display:
xterm: DISPLAY is not set

I added

xhost +local:
export DISPLAY=:0.0

but so far nothing helped, and I could not find an answer searching the existing threads. Would anybody have an idea what to do?

Thank you,

Karlotta