[R-SIG-Mac] Starting tcltk without Tk
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon May 5 15:24:35 CEST 2008
On Mon, 5 May 2008, Simon Urbanek wrote:
> Philippe,
>
> I'm not quite sure why you are asking on a Mac list, but the error comes from
> Tcl/Tk. I'd suggest asking on R-devel, the Tcl/Tk used in the R binary is the
> same for R 2.6.x and 2.7.0 so it must be a change in tcltk.
That's my fault. Only a --with-aqua build of R tries to call Tk_Init if
there is no DISPLAY set, so what he wants to do is MacOS-specific, AFAICS.
I had already told him (on R-devel) I think his 2.6.2 is a
non-CRAN-binary.
Brian
>
> Cheers,
> Simon
>
>
> On May 4, 2008, at 7:01 AM, Philippe Grosjean wrote:
>
>> Hello,
>>
>> Up to R 2.6.2, I used to start Tcl *without Tk* (I need only Tcl for some
>> part of my work, like a socket server written in Tcl only, for instance)
>> with this code under Mac OS X (particularly on this system, because I don't
>> want to start X11 just to use Tcl code, which is required for Tk!):
>>
>>> Sys.unsetenv("DISPLAY")
>>> library(tcltk)
>>
>> I got then the message "no DISPLAY variable so Tk is not available", but
>> could work with Tcl without problems.
>>
>> Now, with R 2.7.0, I got the following and Tcl failed to load:
>> Loading Tcl/Tk interface ... Error in fun(...) : no display name and no
>> $DISPLAY environment variable
>> Error : .onLoad failed in 'loadNamespace' for 'tcltk'
>> Error: package/namespace load failed for 'tcltk'
>>
>> I try to locate the message "no display name and no $DISPLAY environment
>> variable" in the code but I cannot find it. Could someone help me please?
>>
>> I understand that starting Tcl without Tk from R is not an intended
>> behaviour, but would it be possible to include an option to do so?
>>
>>> sessionInfo()
>> R version 2.7.0 Patched (2008-04-22 r45460)
>> i386-apple-darwin8.10.1
>>
>> locale:
>> en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>>
>> attached base packages:
>> [1] stats graphics grDevices utils datasets methods base
>>
>> Many thanks,
>>
>> Philippe Grosjean
>> --
>> ..............................................<°}))><........
>> ) ) ) ) )
>> ( ( ( ( ( Prof. Philippe Grosjean
>> ) ) ) ) )
>> ( ( ( ( ( Numerical Ecology of Aquatic Systems
>> ) ) ) ) ) Mons-Hainaut University, Belgium
>> ( ( ( ( (
>> ..............................................................
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>
>>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-SIG-Mac
mailing list