[MacPorts] #15416: R 2.7 Port (gnu-r): Tk interface does not work
MacPorts
noreply at macports.org
Sat May 24 16:01:54 PDT 2008
#15416: R 2.7 Port (gnu-r): Tk interface does not work
-------------------------------------------+--------------------------------
Reporter: mark.m.fredrickson at gmail.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Resolution: | Keywords:
-------------------------------------------+--------------------------------
Comment (by mark.m.fredrickson at gmail.com):
It would seem this bug is documented (at least to some degree):
http://www.nabble.com/tcltk-issue-remains-td16541839.html
I followed the solution mentioned there:
{{{
> Sys.setenv("DISPLAY"=":0")
}}}
Loading the Tcl/TK library then works. Knowing the problem was caused by
an environment variable, I looked a little closer at what I had been doing
before I launched R. I've been using R for less than a week and after
launching X11, I think I had always loaded R using its complete path.
However, by coincidence, after I upgraded I had been reading in my
~/.profile file to get my usual bash settings.
{{{
bash-3.2$ source ~/.profile
$ r
}}}
My .profile explicitly sets the DISPLAY=0.0. It seems OS X x11 needs
DISPLAY=:0. Changing this in my .profile solves the problem.
So, in conclusion, this may not be a bug with the port per-se, but rather
good old user error. I'll leave it to wiser heads to close the ticket or
keep it open.
Cheers,
-Mark
--
Ticket URL: <http://trac.macports.org/ticket/15416#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list