[TxMt] Re: How to execute all lines before the cursor position?

Marius Hofert m_hofert at web.de
Thu Apr 21 18:35:52 UTC 2011


Dear Steve,

thank you for your answer. 
I tried the following:
(1) I went to "Bundles" => "Bundle Editor" => "Show Bundle Editor"
(2) navigated to "R Console (R.app)" => "Send Document / Selection to R.app"
(3) created a copy and called it "Send all before cursor to R.app"
(4) for this new command, I went to "Command(s)" and replace the line saying: rawText="`cat`" by: rawText = "`head -$(($TM_LINE_NUMBER-1))`" as you suggested
(5) I used the "Key Equivalent" "shift + apple-key + R"

Now when I executed the command, a lot of weird things happened [I work with Version 1.5.8 (1505) on Mac OS X 10.6.7]:
1) A window pops up, saying "Sending task to Rdaemon.." and then "Rdaemon is busy..." and it seems that every line of the file is sent ... 
2) A new file named "console.Rcon -- Rsession" popped up. It had two tabs: The first one is labelled "console.Rcon" and contains the sign ">", the second one is called "r_res" and is empty. 
3) nothing is executed in R [R is also not opened etc].

Do you know what's going wrong?

Cheers,

Marius


More information about the textmate mailing list