[R] GC verbose=false still showing report

Jeff Newmiller jdnewmil at dcn.davis.ca.us
Sun Oct 10 02:14:54 CEST 2010


Try

 invisible(gc())

?

"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.

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list