[R] Too many open files

Omar Lakkis uofiowa at gmail.com
Sat May 27 01:03:04 CEST 2006


This may be more of an OS question ...
I have this call

r = get.hist.quote(symbol, start= format(start, "%Y-%m-%d"), end=
format(end, "%Y-%m-%d"))
which does a url request

in a loop and my program runs out of file handlers after few hundred
rotations. The error message is:  'Too many open files'. Other than
increasing the file handlers assigned to my process, is there a way to
cleanly release and reuse these connections?

I run on Mac OS X



More information about the R-help mailing list