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

Hans-Jörg Bibiko bibiko at eva.mpg.de
Thu May 6 17:10:06 UTC 2010

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.


More information about the textmate mailing list