[Rd] R, OSX, should creating SVGs request XQuartz
simon.urbanek at r-project.org
Wed Aug 27 15:49:32 CEST 2014
On Aug 27, 2014, at 5:45 AM, Jonathon Love <jon at thon.cc> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> on OS X, when you try and use something which depends on X11, and you
> don't have XQuartz installed, you receive an error message, it directs
> you to download XQuartz, and then it euthanizes your process.
> (my guess is that there is a skeleton X11 dylib installed in OS X by
> default, and it is responsible for the error message and the
> euthanasia. once XQuartz is installed, the skeleton dylib is replaced
> with a functioning version)
> in my application, i write SVGs using:
> grDevices::svg( ... )
> this provokes the X11 error message. i was wondering if this is an
> erroneous/unnecessary loading of X11, or if grDevices::svg() does in
> fact rely on X11 functions?
It relies on a library that does: cairo
It doesn't actually call any X11 calls for the SVG backend, but since cairo also supports X11 back-end it has to link against X11. Apple chose to write the stub in such a way that it kicks in when you load X11 even if you don't actually call it.
The only way out would be to compile your own cairographics library and R with disabled X11 support.
> obviously, if i can avoid making my users install XQuartz if it isn't
> necessary (not to mention avoiding the abrupt euthanizing of my
> program), that would be ideal from my perspective.
> with thanks
> - --
> JASP - A Fresh Way to Do Statistics
> - --
> How happy is he born and taught,
> That serveth not another's will;
> Whose armour is his honest thought,
> And simple truth his utmost skill
> This man is freed from servile bands
> Of hope to rise, or fear to fall:
> Lord of himself, though not of lands,
> And, having nothing, yet hath all.
> -- Sir Henry Wotton
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
> Comment: GPGTools - https://gpgtools.org
> -----END PGP SIGNATURE-----
> R-devel at r-project.org mailing list
More information about the R-devel