search for: andmebaasiq

Displaying 1 result from an estimated 1 matches for "andmebaasiq".

2005 Aug 25
1
how to close connections?
Hi everybody, I am using gzipped files quite extensively and cannot figure out how I can close (or reuse) connections. Example: > for(i in 1:300) {cat(i, "\n"); a <- readLines(gzfile("file.gz"), n=1) } 1 2 ... 46 47 Error in gzfile("~/tyyq/andmebaasiq/ETU/ETU1997.tsv.gz") : all connections are in use To use just gzfile without any open/close should be OK as the help states: ... In general functions using connections will open them if they are not open, but then close them again, so to leave a connection open call open explicitly. I hav...