[R] Cannot allocate vector of size x

2011-09-21 Thread Michael Haenlein
Dear all, I am running a simulation in which I randomly generate a series of vectors to test whether they fulfill a certain condition. In most cases, there is no problem. But from time to time, the (randomly) generated vectors are too large for my system and I get the error message: Cannot

Re: [R] Cannot allocate vector of size x

2011-09-21 Thread Rubén Roa
2011 11:54 Para: r-help@r-project.org Asunto: [R] Cannot allocate vector of size x Dear all, I am running a simulation in which I randomly generate a series of vectors to test whether they fulfill a certain condition. In most cases, there is no problem. But from time to time, the (randomly

Re: [R] Cannot allocate vector of size x

2011-09-21 Thread Jim Holtman
how much memory do you have on your system? How large are the vectors you are creating? How many other large vectors do you have in memory? Remove all unused objects and do gc() to reclaim some of the memory. Remember all objects are in memory and you have to understand how large they are and

Re: [R] Cannot allocate vector of size x

2011-09-21 Thread Rubén Roa
allocate vector of size x how much memory do you have on your system? How large are the vectors you are creating? How many other large vectors do you have in memory? Remove all unused objects and do gc() to reclaim some of the memory. Remember all objects are in memory and you have to understand how