Hai,
Here are two suggestions, but others may have more/better ones.
(1)use the following line of code
memory.size(4095)
(2) Are there some specific variables that you will be using, and others
you wont? Get rid of the extra variables
Cheers,
Justin
On Mon, 26 Mar 2007, Hai Tiet wrote:
Hi all,
We're having trouble loading our STATA data into R.
We used library(foreign()) then loaded using read.dta(), but we seem to be
having memory usage issues (the STATA file is only 51mb, but we come back
with errors):
read.dta("C:\\Documents and Settings\\Hai
Tiet\\Desktop\\bits_io2006.dta")--max-mem-size
Error: cannot allocate vector of size 4067 Kb
In addition: Warning messages:
1: Reached total allocation of 958Mb: see help(memory.size)
2: Reached total allocation of 958Mb: see help(memory.size)
3: Reached total allocation of 958Mb: see help(memory.size)
4: Reached total allocation of 958Mb: see help(memory.size)
I thought -max-mem-size uses the maximum memory allowed, but I still get
errors. Any suggestions?
~Hai