Graphical support when running R as another user
I'm running R as another user on my system (sudo -uTest R), and certain commands (e.g. plot) fail with 'unable to open connection to X11 display'. This works fine runni开发者_运维技巧ng R normally, so I know it has to do with running as someone else. I'm guessing this happens because Test doesn't have the desktop/display/whatever running under their name so there's nowhere to draw the graph.
Is there anything I can do about this?
In a terminal window, type:
xauth merge /path-to-your-home-directory/.Xauthority
精彩评论