Hans,
This is wonderful, your efforts are greatly appreciated. Perhaps it is time to replace the R console code in the main R package with these commands? The code completion would be useful when editing normal R scripts as well, is that easily achieved? A few very minor comments.
1. The insert argument and parameter function inserts in the following fashion "n=1". However, the R coding standard[1], suggests "n = 1" (with spaces). I suspect that many will want it the way it is, and it's not hard to change the command, but perhaps the default should be changed.
2. Why does the bundle include a style for the prompts? Why not scope this and have it handled by the chosen theme? For some themes the default isn't very attractive to my eyes.
3. The bundle I have installed has two "Start X11" and two "Open Rsession Project" commands, what is the difference between these?
Thanks again, this is awesome stuff!
Peter
[1] To the extent that it exists: http://cran.r-project.org/doc/manuals/R-exts.html#Tidying-R-code
On Dec 29, 2007 11:43 AM, Hans-Jörg Bibiko bibiko@eva.mpg.de wrote:
Hi,
I fine-tuned Rdaemon a bit, sped it up, and I added some new tools.
Changes: -If the progress bar appears one sees the last line of the console. I.e. if one executes install.package('foo') one sees at least what R is doing.
-If one presses '(' TM not only inserts '()' but TM also displays a tool tip showing the command usage.
-If one presses '$' TM lists all available attributes to that object for inserting.
[Now my favourite. I satisfied my longed for wish ;)] -CTRL+, This key combo displays all named parameters of the current function. One can select one parameter and it inserts it as snippet. If the parameter has a default only the default value will be inserted as snippet. This ALSO works for commands with nested functions! Up to now it only works inside of the current line.
At least for me it's often the case that I see the command usage as a tool tip but while writing I forget the correct spelling of parameters. In R.app you see the command usage in the status bar but if you're typing nested functions, ...
See demo http://www.bibiko.de/TMRdaemonTools.mov
I also tried out the iplots package and it also works very good.
I thought about how to save a plot. One solution is to use Preview (OPT+APPLE+G) and save it as PNG,TIFF,PDF, etc. Comments?
Have fun and Happy New Year
--Hans
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