Re: [R] locfit and memory allocation

2005-04-05 Thread Prof Brian Ripley
Calling gc() before starting a memory-intensive task is normally a good idea, as it helps avoid memory fragmentation (which is possibly a problem in a 32-bit OS, but you did not say). R 2.1.0 beta has some dodges to help, so you may find if helpful to try that out. On Mon, 4 Apr 2005, Mike Hic

RE: [R] locfit and memory allocation

2005-04-04 Thread Liaw, Andy
The code sniplet you provided is nowhere near correct or sufficient for anyone to help. Please (re-)read the posting guide and try again. Andy > From: Mike Hickerson > > Hello > > I am getting memory allocation errors when running a function > that uses > locfit within a for loop. After 25

[R] locfit and memory allocation

2005-04-04 Thread Mike Hickerson
Hello I am getting memory allocation errors when running a function that uses locfit within a for loop. After 25 or so loops, it gives this error. "Error: cannot allocate vector of size 281250 Kb" Running on linux cluster with a Gb of RAM. Problem never happens on my OS X (less memory). T