Re: [Rd] Hook for running a function before evaluation

2007-07-06 Thread Byron Ellis
Running from the Terminal, it acts as a simple shim for people who would prefer to use the Terminal or a terminal-like interface such as ESS. It provides a pretty basic graphics device implementation with a full event loop (without requiring CarbonEL or other workarounds) in that mode. That graphic

Re: [Rd] Hook for running a function before evaluation

2007-07-06 Thread Philippe Grosjean
Hi Byron, Excellent! I am also on OS X (together with Win XP and Quantian using Parallels desktop ;-) So far, so good, I have the latest RExecServer running in a terminal. So, what can I do with it? Best, Philippe ..<°}))>< ) ) ) ) ) ( ( (

Re: [Rd] Hook for running a function before evaluation

2007-07-06 Thread Byron Ellis
Hi Philippe, This is exactly the approach being taken in RExecServer (which is in turn possibly connected to front ends via distributed objects). It's an OS X app so the model is my_ReadConsole(...) { didFinishEvaluationForInterpreter(...); internalReadConsole(...); (usually start the run loop

[Rd] Hook for running a function before evaluation

2007-07-06 Thread Philippe Grosjean
Hello, I like much addTaskCallback() and friends. However, there are situations were we would like to have a function run BEFORE, not after every top-level tasks. I think specifically to reset options(width = ) to accommodate to the current width of the console, using something like: options(wi