You are not logged in.

#1 2012-02-13 15:01:15

cryptkeeper
Member
From: Zurich, Switzerland
Registered: 2011-12-29
Posts: 63

R: X11 module cannot be loaded

I've just installed R with pacman. When I try to plot something (e.g. "plot(1,1)" in interactive mode), I get the following error:

Error in function (display = "", width, height, pointsize, gamma, bg,  : 
  X11 module cannot be loaded

Of course, I tried to find a solution with google, but all I found were people having the same problem, but nowhere a solution for it...

I suppose I have to properly configure R's X11 settings, but I simply don't know R so I have no idea how to solve this.

Any suggestions?

BTW (if that's important in this case): I'm running Arch (of course wink ) with Gnome3.

Last edited by cryptkeeper (2012-02-13 17:17:22)

Offline

#2 2012-04-18 08:12:13

papounet
Member
Registered: 2009-06-14
Posts: 22

Re: R: X11 module cannot be loaded

same thing here. I'm stumped about what to do.

Offline

#3 2012-04-18 11:28:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: R: X11 module cannot be loaded

Is this in an interactive R session, or from a script?

I can't replicate this in an interactive session - it works fine here.  In a script, I would expect an error if you do not define a graphics device.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2012-04-18 12:36:05

papounet
Member
Registered: 2009-06-14
Posts: 22

Re: R: X11 module cannot be loaded

It is in an interactive session. Working with the pdf() device works fine. Only calling x11() throws the error and this is independent of the type (cairo or Xlib)

Maybe I will try building from ABS.

Offline

#5 2012-04-18 12:43:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: R: X11 module cannot be loaded

Do you get the same result:

$ pacman -Ql r | grep X11
r /usr/include/R/R_ext/GetX11Image.h
r /usr/lib/R/modules/R_X11.so

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2012-04-18 17:32:36

papounet
Member
Registered: 2009-06-14
Posts: 22

Re: R: X11 module cannot be loaded

I hab an issue with the libpng version bump on my system (haven't 'pacman -Syu' in a while).

It gave the appropriate error but only on the first invocation of 'plot' or 'x11()'. Thank you for your help. Should I mark the thread as SOLVED even though I'm not the OP??

Offline

#7 2012-04-18 19:27:52

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: R: X11 module cannot be loaded

papounet wrote:

Should I mark the thread as SOLVED even though I'm not the OP??

Don't worry about it. Only the OP can edit the topic title.

Next time, consider opening a thread of your own.


Burninate!

Offline

Board footer

Powered by FluxBB