[Rd] RAqua with X11 TclTk

Jan de Leeuw deleeuw at stat.ucla.edu
Sat Nov 8 18:07:13 MET 2003


Running x11() or plot(1:10) from command line R running in Terminal.app  
or in Xterm.app
is fine. This is R-devel and OS X 10.3.1.


On Nov 8, 2003, at 8:50, Stefano Iacus wrote:

>
> On Sabato, nov 8, 2003, at 17:36 Europe/Rome, Jan de Leeuw wrote:
>
>> That's a somewhat unfortunate step back, and a rather drastic hack
>> to get around the eventloop problem.
>
> yes, but only for 1.8.1, event loop changes requires time and it is  
> planned not before 1.9.0
>
>> I make two versions of the tcltk
>> package, one in RAqua, one in /usr/local/lib/R/library (the X11  
>> version).
>> I then make softlinks from all packages in  /usr/local/lib/R/library  
>> to
>> ~/Library/RAqua/library and then remove the softlinks to the packages
>> that are already in RAqua (including tcltk). Now the Emacs and
>> terminal versions use the X11 version and RAqua uses the Aqua
>> version of tcltk. http://gifi.stat.ucla.edu/pub gives the deatils,  
>> including
>> the ~/.emacs one needs.
>
> Jan, the AquaTclTk does not seem to work fine at the moment.
> I can say more: you can try to run (from CRAN RAqua which is  
> AquaTclTk) the R cmd line from an xterm and load the tcltk library.  
> And you have Aquatcltk from X11 !
>
>
>>
>> I have no build problems in Panther, except the problem with g77-3.4
>> when compiling tseries.
> apparently we cannot build correctly R-devel on Panther. Try to launch  
> x11() from RAqua console built on Panther using Apple's gcc and please  
> let us know if it works for you.
>
>
>> Go back to g77-3.3 for this and you're fine. Panther
>> fixes the pty bug in Darwin, and thus R now functions fine in Carbon,
>> command line, and X11 Emacs using X11 graphics. See
>> http://members.shaw.ca/akochoi-emacs/index.html
>>
>> On Nov 8, 2003, at 8:19, Stefano Iacus wrote:
>>
>>> I've built a version of RAqua that uses X11 TclTk and NOT AquaTclTk.
>>>
>>> http://www.economia.unimi.it/R/RAquaX11.dmg   (15 MB disk image)
>>>
>>>
>>> The idea is that you: launch RAqua, launch X application (the X  
>>> Server), and from inside R type
>>>
>>> x11() # just tt set DISPLAY to :0.0. Eventually close this window  
>>> device, we don't need this.
>>> load(tcltk)
>>> quartz()
>>> demo(tkdensity)
>>>
>>>
>>> It works on my Panther machine as well and it comes with three  
>>> installers for: libreadline, tcltk (the X11 version) and the libxml2  
>>> in case you want to use the prebuilt XML package.
>>>
>>>
>>> Thomas Lumley has found oddities in configuring/building R on  
>>> Panther so I built it on Jaguar and it works as well on panther.
>>>
>>>
>>> I would like to propose this version of RAqua for R-1.8.1, i.e.  
>>> built only against X11/tcltk.
>>>
>>> This will allow one binary only for R that can run tcltk from Emacs  
>>> or phyton for example.
>>>
>>> Could you please test it on Jaguar and Panther before the end of the  
>>> next week?
>>>
>>> I've built this version with the following config
>>>
>>> ./configure --enable-R-shlib --with-blas='-framework vecLib'  
>>> --with-lapack --with-aqua
>>>
>>> Of course, I have built from sources tck and tk 8.4.4.
>>> If you want to do this take care to configure and build the tcl/tk  
>>> sources from inside the "unix" directory.
>>>
>>> stefano
>>>
>>> ______________________________________________
>>> R-devel at stat.math.ethz.ch mailing list
>>> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
>>>
>>>
>> ===
>> Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
>> Editor: Journal of Multivariate Analysis, Journal of Statistical  
>> Software
>> US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA  
>> 90095-1554
>> phone (310)-825-9550;  fax (310)-206-5658;  email:  
>> deleeuw at stat.ucla.edu
>> homepage: http://gifi.stat.ucla.edu
>>   
>> ---------------------------------------------------------------------- 
>> ---------------------------
>>           No matter where you go, there you are. --- Buckaroo Banzai
>>                    http://gifi.stat.ucla.edu/sounds/nomatter.au
>>   
>> ---------------------------------------------------------------------- 
>> ---------------------------
>>
>>
>
>
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software
US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw at stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
   
------------------------------------------------------------------------ 
-------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au



More information about the R-devel mailing list