readRAST6: too many open files
On Tue, 5 May 2009, Agustin Lobo wrote:
We're using
rastdum <- readRAST6("nomdum",cat=F,ignore.stderr = T)
(on a ubuntu 8.10 machine and R 2.9)
within a for() loop of hundreds of iterations.
At some point (ca. 199) we get an error
"Too many open files"
and suspect that this is because readRAST6() is opening
and not closing files. Is this a bug?
Possibly, but a complete sessionInfo() would be necessary - the versions of the packages involved may matter. Does this reproduce with readRAST6() in a loop reading say the same raster? I've run 300 reads of spearfish elevation.dem without seeing problems for:
sessionInfo()
R version 2.9.0 (2009-04-17) i386-pc-mingw32 locale: LC_COLLATE=Norwegian (Bokm?l)_Norway.1252;LC_CTYPE=Norwegian (Bokm?l)_Norway.1252;LC_MONETARY=Norwegian (Bokm?l)_Norway.1252;LC_NUMERIC=C;LC_TIME=Norwegian (Bokm?l)_Norway.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] spgrass6_0.6-5 XML_2.3-0 rgdal_0.6-8 sp_0.9-36 loaded via a namespace (and not attached): [1] grid_2.9.0 lattice_0.17-22 Roger
I remember having a similar problem with writeGDAL() on a win machine a long ago, but that problem was fixed. Thanks Agus
Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no