[TxMt] R send function to console
Ross Ahmed
rossahmed at googlemail.com
Wed Mar 5 10:26:20 UTC 2014
Let's say I have R open and i¹m editing a .R filewith TextMate. In my .R
file I have a line of code like this:
lm(mpg ~ drat, mtcars)
Is it possible to set up a keyboard shortcut, which when pressed whilst an R
object was selected, would send that object to the R console inside a
function.
For example:
I select 'mpg', press COMMAND + OPTION + L, and this object would be run in
the R console as: length(mpg)
I select mtcars', press COMMAND + OPTION + S, and this object would be run
in the R console as: summary(mtcars)
I select 'lm(mpg ~ drat, mtcars)', press COMMAND + OPTION + P, and this
object would be run in the R console as: plot(lm(mpg ~ drat, mtcars))
Thanks
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20140305/6c0099a3/attachment.html>
More information about the textmate
mailing list