[TxMt] Getting Rdaemon to echo code + output (like ESS)

Kieran Healy kjhealy at gmail.com
Sun Mar 29 02:52:58 UTC 2009


Hi all,

Can the Rdaemon bundle can behave in a way that's similar to ESS in  
Emacs (or as near as possible given that TextMate doesn't do split  
windows and frames, etc). What I want is to have an R file open in one  
window (associated with the R bundle) and an R session created under  
Rdaemon open in a second window. I write R code in the R file and, as  
needed, send chunks of it over to the R session where they are  
executed. This is the standard way of working interactively with R in  
Emacs/ESS. You can select code chunks and execute them in an R process  
running inside a buffer. The code is echoed in the R session when you  
send it over, together with any errors or output, etc.

In TextMate, I can have an R file open and an R session running in  
Rdaemon, which is great. I can select code and use "Send Selection to  
Rdaemon", but it works in the background (or rather, with a progress- 
meter message box). The code executes properly, but it and its output  
are not echoed in the open Rdaemon window. Once the code has been  
executed I can step back through the code in the Rdaemon window using  
the line-by-line code history. But what I want is to see code chunks  
(and their output) inside the Rdaemon window as I go. Is this possible?

I realize it's somewhat unfair to ask TM/Rdaemon to behave just like  
Emacs/ESS and yet still be TM. It's just that now that TM's LaTeX  
bundle is so solid, having Rdaemon able to behave in this way would  
mean I could stop using Emacs ...

Thanks,

Kieran



More information about the textmate mailing list