

_G_a_r_b_a_g_e _C_o_l_l_e_c_t_i_o_n

     gc(verbose = .Options$verbose)
     gcinfo(verbose)

_A_r_g_u_m_e_n_t_s:

 verbose: logical; if `TRUE', the garbage collection prints
          statistics about cons cells [in Bytes] and the
          vector heap [in KBytes].

_V_a_l_u_e:

     A call of `gc' causes a garbage collection to take
     place.  This usually takes place automagically without
     user intervention.  `gc' returns a 2*2 matrix with rows
     `"Ncells"' (cons cells) and `"Vcells"' (vector cells),
     and columns `"free"' and `"total"'.

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

_S_e_e _A_l_s_o:

     `Memory' on R's memory management  and `gctorture' if
     you are an R hacker.

_E_x_a_m_p_l_e_s:

     gc() #- do it now
     gcinfo(TRUE) #-- in the future, show when you do it
     x <- integer(0); for(i in 1:18) x _ c(x,i,x)
     gcinfo(verbose = FALSE)#-- don't show it anymore

     ( rgc <- gc(TRUE) )
     (100*rgc[,"free"])%/% rgc[,"total"] # the percentages
     rgc[2,"free"]/ (1024 / 8) # free vector heap in K bytes

