Skip to content
Prev 690 / 15075 Next

RAqua

On Mercoled?, lug 2, 2003, at 18:43 Europe/Rome, Jan de Leeuw wrote:

            
It was talking with Simon (Urbanek) that convinced  me to implement the 
console this way, but it can be changed in principle letting the user 
specify what he likes more.
BTW, I think the user always know what he has done because I copy input 
to the output before processing. If you look at the R Console Out, you 
should noticed that. I had in mind this and I think it is a good 
compromise. For example pipes based front end don't do this if I 
remember well.
But my goal is to let people choose what they prefer :)
I absolutely agree. I have to solve this, but this is somewhat related 
to the eventloop. I'll try to fix on my own, but as soon as the 
REventLoop scheme is implemented in R it should disappear.

In case you have any hints to give this is what I actually do: I simply 
run and quit the eventloop each time 
(RunApplicationEventLoop/QuitAppEventLoop). This gives me very 
simplified code and let me to use all the standard handlers by apple. 
This also will allow me a rapid migration to Cocoa as soon as I 
understand how to mix objective C inside R.
I agree on this point too but it will imply very hard work and it 
should be taken under big consideration.

But, let me say, I think that the high priority has to be given to 
RAqua at the moment, the target being R-1.8.0.
My reasoning is the usual one: many people used Carbon R and don't want 
to deal with term/x11 or whatever.
They simply want a double-clicking app that they find where they expect 
it to be, i.e. inside /Applications.

The choice of putting all inside /Applications is due to the fact that 
I want to leave the system untouched as much as possible with the idea 
that, for example, my Darwin/X11 R can live in /usr/bin without 
interfere.
But of course I can leave StartR inside App and move the rest outside.
yes, this is a configuration bug I'm going to fix.
not sure, but I'll check thanks.
An internal editor I can implement is just a text editor like the old 
in Carbon R.
But I'll also reimplement the AppleEvent facility. This let RAqua being 
AppleScriptable and allows also for interprocess communication as it 
was with Alpha and Carbon R

Good idea the services.
or it can be: you wanted to to this, well here is the corresponding R 
Command.
But I agree it is lazyness.
I would be pleased to have these ...argh
have you seen the recent sample code by apple on running carbon code 
from X11 apps?
They open some carbon dialogs from x11 app. But there is still the 
problem of event loop, you cannot have both (X11/Carbon) event loop 
running...or at least it is what I have understand.

Thanks for all this remark, they have been very useful.

stefano

p.s. do not make distinction between RAqua and RCocoa. The RAqua is 
intended to be an Aqua GUI for R which is now implemented using Carbon 
API but can be rewritten (I hope shortly) using Cocoa.