[R] GC verbose=false still showing report

Robin Jeffries rjeffries at ucla.edu
Sun Oct 10 03:59:39 CEST 2010


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.




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
>



More information about the R-help mailing list