On Mon, 11 Oct 2004, Vadim Ogranovich wrote:

> Setting A <- NULL doesn't immediately release the memory, the memory is
> actually released in gc(), which R calls for you at some "random" time.
> In situations like this I explicitely call gc() and do not wait for R to
> do this, e.g
> A <- NULL; gc()

`Some random time' always includes immediately before giving an 
out-of-memory error message.

What's wrong with rm(A), as used in the first session in `An Introduction 
to R'?

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to