[TxMt] Re: How to execute a shell script within TextMate?

Daniel Stegmueller d.stegmueller at gmail.com
Fri May 7 08:00:06 UTC 2010


Ah, I hoped this was just your preference, but I see that there's no easy way around this.

I usually document my functions in one comment at the top - so it is not a problem.
However, when writing code for students, it seems easier for them if each line is commented...

Thanks,
Daniel



On 6 May 2010, at 19:10, Hans-Jörg Bibiko wrote:

> 
> On May 6, 2010, at 3:31 PM, Daniel Stegmueller wrote:
> 
>> Hans,
>> 
>> just out of interest: why does the Tidy function remove comments? 
>> The formatting is very nice, but loosing the comments is quite a price to pay...
> 
> up to now the Tidy function makes usage of R's internal function formatting. 
> 
> I declare a new dummy function à la:
> 
> dummy <- function() {
> 	"TM's R document code"
> }
> 
> and then I dump this dummy function by using options(keep.source = FALSE) for a R --slave command via:
> 
> dump(ls(all = TRUE), file = "a_temp_file", control = c("keepInteger", "keepNA", "quoteExpressions")
> 
> By doing this all comments will be unfortunately removed. That's why I'm still looking for a better way.
> 
> Cheers,
> --Hans
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate




More information about the textmate mailing list