[TxMt] Send variable to R app

Ross Ahmed rossahmed at googlemail.com
Thu Apr 3 19:05:58 UTC 2014


Last month I asked how to select some text and press a keyboard shortcut
that would send the selected text to R app:
http://lists.macromates.com/textmate/2014-March/037158.html

This is working excellently well. I¹m interested in extending this, but
cannot figure out how to set it up.

Lets say I have this code:

summary(lm(mpg ~ drat  + hp, mtcars))

How can select 'mtcars¹ and Œhp¹ simultaneously, press a keyboard shortcut
and run this code in R app:

mtcars$hp

Similarly, in this code:

ddply(mtcars, .(cyl), summarise, mean(mpg))

How can select 'mtcars¹ and Œmpg¹ simultaneously, press a keyboard shortcut
and run this code in R app:

mtcars$mpg

Thanks
Ross



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20140403/77afe567/attachment-0001.html>


More information about the textmate mailing list