I wonder if someone with a lot of patience can help me with getting the basics of this working. I have downloaded the the three files that Hans-Jorg uploade to this forum, as they don't appear to be in the repository yet.
Of the three files only one looked like the other bundle files and I copied it into the same directory where the old RBundle was located. I now have a new set of commands and updated the help index.
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
I am also being extremely dim in getting things to work.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
test
[1] 3 4 6 7 8 9 10
in the runtime window. However, what I get is
test
Error: object "test" not found Execution halted
If I open R and have the RConsole open, then "send selection to r.app" works as expected, but as that has a rather clumsy shortcut key, I assume the shorter command R option is the "normal"way of working
I accept my unfamiliarity with TextMate is probably the problem, but I would appreciate someone pointing out the obvious to me.
Many thanks,
Graham
Hi Graham,
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see
R Console (Rdaemon).tmbundle
which can then be double clicked to add it to TextMate.
Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type
start[tab]
and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck, Paul
Paul,
Thanks, that would all seems to make sense. And yes it does seem a nice environment, which played a small part in my decision to buy a Mac.
Graham
On 20/02/2008, Paul McCann paul.mccann@adelaide.edu.au wrote:
Hi Graham,
However, I am not at all sure what to do with the other two files (Rdaemon and R,app) as these don't unzip to bundle files.
Fair enough! Looks like those other files *are* zip files but lacked the extension. To get the Rdaemon version running rename "R" to "R.zip" and then double click it. You should see
R Console (Rdaemon).tmbundle
which can then be double clicked to add it to TextMate.
Now open a new file, change the language to "R Console (Rdaemon)" from the selector at the bottom of the window. Type
start[tab]
and the daemon should start. There might be a small bug here in that you'll see two ">" signs. Just delete one of them and begin to enter R commands as you would in the console.
If I type "test<-c(3,4, 6, 7, 8, 9, 10)" in TextMate and hit command R, An R runtime opens and the command is executed and this line appears in the runtime.
I would now expect to type "test" in Textmate, hit command R again and get something like:
test
[1] 3 4 6 7 8 9 10
This should now work as you expect. It's a really nice environment!
Good luck, Paul
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate