[Rd] png error
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Sat Sep 5 19:30:06 CEST 2026
On Sat, 05 Sep 2026 16:30:10 +0000
Terry Therneau via R-devel <r-devel using r-project.org> wrote:
> unable to open connection to X11 display ''
> Error in .External2(C_X11, paste0("png::", filename), g$width,
> g$height, : unable to start device PNG
This is a little strange because normally R would prefer to use the
Cairo-based device that doesn't require an X server connection. Did you
intend for your build of R to skip using Cairo?
If you're interested in debugging, see if Sys.getenv("DISPLAY") returns
anything useful after you attempt to start Xvfb. Can you run
DISPLAY=$that_string xeyes? Is the socket in present in /tmp/.X11-unix/?
You could also try to run 'xvfb-run R' and then skip starting Xvfb by
hand. Does 'xvfb-run R CMD check frailtyEM_*.tar.gz' work?
--
Best regards,
Ivan
More information about the R-devel
mailing list