1 Apr 2006 12:45
Re: R crashes on winXP with 2G memory
Hi. R should never crash, that's true. What's your version of R? Are you running R v.2.2.1? Then try to download the latest "patched" version. Are you running R v2.3.0 devel? Then try to download a newer version, because bugs get introduced once in a while in the devel version which are fixed a few days later. Troubleshooting: When does it crash? In the read.table() call? Try to narrow it down. If it is a memory problem, you can always try to through in a gc() in the end of your for loop. Also, if you're only interested in a few of the columns, you can the read.table() to ignore all others. See the help and argument 'colClasses'. That will speed up your reading and decrease the memory usage. R should still not crash, but you might avoid the bug this way. In your script, 'Count' and 'count' are two different objects! Also, your 'assign(print(i,quote=FALSE),x)' statement is very misleading (although correct). It's better to split it up in two lines: print(i,quote=FALSE); assign(i,x); /Henrik On 3/31/06, Hao Liu <liuha@...> wrote: > Dear All: > > I encountered this several times, could someone point out where the problem(Continue reading)
RSS Feed