[R] GC verbose=false still showing report

Duncan Murdoch murdoch.duncan at gmail.com
Sun Oct 10 12:05:30 CEST 2010


On 09/10/2010 9:59 PM, Robin Jeffries wrote:
> invisible(gc())
> 
> worked perfectly. Thanks Jeff.
> 
> @ Josh: I know how to toggle showing/hiding command echos, but I
> haven't figured out how to toggle on/off any printed output.

Use "results=hide" as an Sweave option, e.g.

<<echo=FALSE, results=hide>>=
gc()
@

Duncan Murdoch

> 
> 
> 
> 
> On Sat, Oct 9, 2010 at 5:10 PM, Robin Jeffries <rjeffries at ucla.edu> wrote:
>> I must be reading the help file for gc() wrong. I thought it said that
>> gc(verbose=FALSE) will run the garbage collection without printing the
>> Ncells/Vcells summary. However, this is what I get:
>>
>> gc(verbose = FALSE)
>>         used (Mb) gc trigger  (Mb) max used  (Mb)
>> Ncells 267097 14.3     531268  28.4   531268  28.4
>> Vcells 429302  3.3   20829406 159.0 55923977 426.7
>>
>> I'm embedding this in an Sweave/TeX file, so I *really* can't have
>> this printing out. Suggestions other than manually editing the TeX
>> file?
>>
>> Robin Jeffries
>> MS, DrPH Candidate
>> Department of Biostatistics
>> UCLA
>> 530-624-0428
>>
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list