Re: [R] Possible memory leak with R v.2.5.0

2007-08-17 Thread Peter Waltman
Hi Martin (and others, hopefully ) - Upon your suggestion, I tried your code and did not see a leak, and this was reflected by the 'top' command. However, I modified your code snippet below to make it a little closer to what I'm actually doing, and can now reproducibly cause the leak that I'm

Re: [R] Possible memory leak with R v.2.5.0

2007-08-16 Thread Peter Waltman
Hi Martin - Thanks for the feedback. Right after I sent the email to the list last night, I realized that I'd forgotten to clear the all the vars we attach() to the environment before rm()'ing everything. Whoops. However, I found that while doing this *does* reduce the memory stamp by about

Re: [R] Possible memory leak with R v.2.5.0

2007-08-16 Thread Martin Morgan
Hi Peter -- Here's my guess. Ironically, adding things to broken code reduces the signal to noise ratio. I ended up with get.vars.for.cluster = function( cluster, genes=get.global("gene.ids" ), ratios=get.global("ratios")) { cluster <<- cluster rows <- cluster$rows cols <- clus