Ahh, a good point. That brings us back to coming up with a clever way of piping IO to a shell process, which is where I eventually gave up because my methods were both fragile and unwieldy. Perhaps there's a graceful hack out there? I still think something like the TerminalMate plugin based on the iTerm codebase could be a means of embedding an interactive shell (useful for R, matlab, irb, etc.), but that's a big undertaking. I'll have to take a look at Thomas' Second Life bundle to see how he's doing it.
cheers, -d
On Dec 18, 2007 2:36 AM, Hans-Joerg Bibiko bibiko@eva.mpg.de wrote:
Yes, I already tried that approach. It works perfectly, even for errors/messages BUT one looses the possibility to interact with R, e.g. readline("Give me the value for x:"). I didn't find a way to distinguish whether R is waiting for the user's input. And unfortunately it's not allowed to overwrite the function 'readline'.
--Hans