#12172: R doctest starts X11 on OSX
-----------------------+----------------------------------------------------
Reporter: vbraun | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: doctest | Keywords: R r-project graphics OSX X11
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
-----------------------+----------------------------------------------------
John Palmeri reports that, with the R package from #12057, this doctest is
problematic (line 352):
{{{
sage: s = r.eval('capabilities("png")') # Should be on Linux and
Solaris
}}}
On his Mac OS X 10.6.8 box, doctesting this starts up the X server but
does not display any actual graphics. This is new: it didn't do this in
Sage 4.8.alpha3.
This does not happen on all OSX machines. The intented R configuration on
OSX is without X11 support, and only Aqua capabilities.
It might be a bug or misconfiguration in the X installation that it opens
up even though nobody is draw a window.
This can be avoided by unsetting `DISPLAY` in the R session, but then R
does no longer report png output capabilities:
{{{
> Sys.unsetenv("DISPLAY")
> capabilities("png")
png
FALSE
> capabilities("aqua")
aqua
TRUE
}}}
Its unclear whether that would really be an issue in Sage.
Somebody with a Mac might want to trace where exactly R starts up the X
server. The equivalent of strace on Linux seems to be
http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/dtruss.1m.html
{{{
sage -sh
dtruss -f R
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12172>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.