This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/gc.html
gc {base}R Documentation

Garbage Collection

Usage

gc()
gcinfo(verbose)

Arguments

verbose

a logical value.

Value

A call of gc causes a garbage collection to take place. This usually takes place automagically without user intervention.

The associated function gcinfo sets a flag so that automatic collection is either silent (verbose=FALSE) or prints memory use statistics (verbose=TRUE).

Examples

gc() #- do it now
gcinfo(TRUE) #-- in the future, show when you do it

[Package base version 0.60 ]