This question seemed to me to be more appropriate for r-devel
than for r-help. My apologies if this is not the case.
Recently I installed ``cairo'' on my lap-top so that I could make
use of the (newish) polypath() function, with on-screen graphics.
(The polypath() function does not work with X11(type="Xlib").)
The installation went smoothly, X11(type="cairo") works just fine,
and polypath() works just fine.
However the default "type" for X11() remains "Xlib" rather than
"cairo".
The help for X11.options() says (in respect of "type"):
Default "cairo" where available and reliable, otherwise "Xlib".
Now "cairo" is definitely available:
> capabilities()["cairo"]
cairo
TRUE
and moreover it works (just fine!) when I do X11(type="cairo")
explicitly.
I know that I can set the default to be "cairo" in my .Rprofile, but
I am curious as to why "cairo" does not become the default automatically.
Is it the case that "cairo" is ``not reliable'' under my system? It
***seems***
to be reliable.
> sessionInfo()
R version 2.13.1 Patched (2011-07-17 r56404)
Platform: i686-pc-linux-gnu (32-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=C LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] datasets utils stats graphics grDevices methods base
other attached packages:
[1] misc_0.0-13 gtools_2.6.2 spatstat_1.23-1 deldir_0.0-15
[5] mgcv_1.7-6 fortunes_1.4-2 MASS_7.3-13
loaded via a namespace (and not attached):
[1] grid_2.13.1 lattice_0.19-30 Matrix_0.999375-50 nlme_3.1-101
cheers,
Rolf Turner
Xll.options().
8 messages · Rolf Turner, Uwe Ligges, Martin Maechler
Hi Rolf,
please excuse a short "top-reply":
As I see you are using an operating system (instead of Win..),
can you try in the shell
echo 'X11.options()$type' | R --vanilla --slave
and does that really *not* report
[1] "cairo"
??
(and BTW: Your subject had tolower("LL") instead of "11" )
Rolf Turner <r.turner at auckland.ac.nz>
on Mon, 8 Aug 2011 12:49:44 +1200 writes:
> This question seemed to me to be more appropriate for
> r-devel than for r-help. My apologies if this is not the
> case.
> Recently I installed ``cairo'' on my lap-top so that I
> could make use of the (newish) polypath() function, with
> on-screen graphics. (The polypath() function does not
> work with X11(type="Xlib").)
> The installation went smoothly, X11(type="cairo") works
> just fine, and polypath() works just fine.
> However the default "type" for X11() remains "Xlib" rather
> than "cairo".
> The help for X11.options() says (in respect of "type"):
> Default "cairo" where available and reliable,
> otherwise "Xlib".
> Now "cairo" is definitely available:
>> capabilities()["cairo"]
> cairo TRUE
> and moreover it works (just fine!) when I do
> X11(type="cairo") explicitly.
> I know that I can set the default to be "cairo" in my
> .Rprofile, but I am curious as to why "cairo" does not
> become the default automatically.
> Is it the case that "cairo" is ``not reliable'' under my
> system? It ***seems*** to be reliable.
>> sessionInfo()
> R version 2.13.1 Patched (2011-07-17 r56404) Platform:
> i686-pc-linux-gnu (32-bit)
> locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3]
> LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5]
> LC_MONETARY=C LC_MESSAGES=en_US.UTF-8 [7]
> LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C
> LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8
> LC_IDENTIFICATION=C
> attached base packages: [1] datasets utils stats graphics
> grDevices methods base
> other attached packages: [1] misc_0.0-13 gtools_2.6.2
> spatstat_1.23-1 deldir_0.0-15 [5] mgcv_1.7-6
> fortunes_1.4-2 MASS_7.3-13
> loaded via a namespace (and not attached): [1] grid_2.13.1
> lattice_0.19-30 Matrix_0.999375-50 nlme_3.1-101
> cheers,
> Rolf Turner
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
On 08/08/11 20:20, Martin Maechler wrote:
Hi Rolf, please excuse a short "top-reply":
No problema. Thanks for replying.
As I see you are using an operating system (instead of Win..),
can you try in the shell
echo 'X11.options()$type' | R --vanilla --slave
and does that really *not* report
[1] "cairo"
Sure. It really does *not* report "cairo"!!!:
~> echo 'X11.options()$type' | R --vanilla --slave
[1] "Xlib"
??
(and BTW: Your subject had tolower("LL") instead of "11" )
Whoops. Oh dear. Blame it on senility. :-(
cheers,
Rolf
On 08.08.2011 10:20, Martin Maechler wrote:
Hi Rolf,
please excuse a short "top-reply":
As I see you are using an operating system (instead of Win..),
can you try in the shell
echo 'X11.options()$type' | R --vanilla --slave
Martin, given the R on my non-OS had X11.options, I'd rather written: R --slave --vanilla -e "X11.options()$type" Don't know why you have to type more on your OS. Uwe
and does that really *not* report
[1] "cairo"
??
(and BTW: Your subject had tolower("LL") instead of "11" )
Rolf Turner<r.turner at auckland.ac.nz>
on Mon, 8 Aug 2011 12:49:44 +1200 writes:
> This question seemed to me to be more appropriate for
> r-devel than for r-help. My apologies if this is not the
> case.
> Recently I installed ``cairo'' on my lap-top so that I
> could make use of the (newish) polypath() function, with
> on-screen graphics. (The polypath() function does not
> work with X11(type="Xlib").)
> The installation went smoothly, X11(type="cairo") works
> just fine, and polypath() works just fine.
> However the default "type" for X11() remains "Xlib" rather
> than "cairo".
> The help for X11.options() says (in respect of "type"):
> Default "cairo" where available and reliable,
> otherwise "Xlib".
> Now "cairo" is definitely available:
>> capabilities()["cairo"]
> cairo TRUE
> and moreover it works (just fine!) when I do
> X11(type="cairo") explicitly.
> I know that I can set the default to be "cairo" in my
> .Rprofile, but I am curious as to why "cairo" does not
> become the default automatically.
> Is it the case that "cairo" is ``not reliable'' under my
> system? It ***seems*** to be reliable.
>> sessionInfo()
> R version 2.13.1 Patched (2011-07-17 r56404) Platform:
> i686-pc-linux-gnu (32-bit)
> locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3]
> LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 [5]
> LC_MONETARY=C LC_MESSAGES=en_US.UTF-8 [7]
> LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C
> LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8
> LC_IDENTIFICATION=C
> attached base packages: [1] datasets utils stats graphics
> grDevices methods base
> other attached packages: [1] misc_0.0-13 gtools_2.6.2
> spatstat_1.23-1 deldir_0.0-15 [5] mgcv_1.7-6
> fortunes_1.4-2 MASS_7.3-13
> loaded via a namespace (and not attached): [1] grid_2.13.1
> lattice_0.19-30 Matrix_0.999375-50 nlme_3.1-101
> cheers,
> Rolf Turner
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
______________________________________________ R-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Uwe Ligges <ligges at statistik.tu-dortmund.de>
on Mon, 8 Aug 2011 21:38:06 +0200 writes:
> On 08.08.2011 10:20, Martin Maechler wrote:
>> Hi Rolf,
>>
>> please excuse a short "top-reply":
>>
>> As I see you are using an operating system (instead of
>> Win..), can you try in the shell
>>
>> echo 'X11.options()$type' | R --vanilla --slave
> Martin,
> given the R on my non-OS had X11.options, I'd rather
> written:
> R --slave --vanilla -e "X11.options()$type"
> Don't know why you have to type more on your OS.
:-)
touch?, Uwe!
Martin
Uh, to get back to the (my) point --- anybody have any ideas as to why
X11.options()$type is defaulting to "Xlib" rather than "cairo" even though
cairo is available and apparently (???) ``reliable''?
cheers,
Rolf
Fine for me on a recent Debian with R-2.13.1 patched. I think we will need more details of a really clean install and your version of cairo etc. [I'm on vacations and may be offline until Thursday] Uwe
On 09.08.2011 01:10, Rolf Turner wrote:
Uh, to get back to the (my) point --- anybody have any ideas as to why X11.options()$type is defaulting to "Xlib" rather than "cairo" even though cairo is available and apparently (???) ``reliable''? cheers, Rolf
On 09/08/11 20:43, Uwe Ligges wrote:
Fine for me on a recent Debian with R-2.13.1 patched.
Psigh! Why do the Computer Gods always pick on ***me***?
I think we will need more details of a really clean install and your version of cairo etc. [I'm on vacations and may be offline until Thursday]
When you get some time, can you please give me some explicit instructions as
to how to produce the details that you need?
No rush; this is kind of an academic question since I've worked around
the problem
by explicitly setting X11.options(type="cairo") in my .Rprofile.
cheers,
Rolf