Skip to content
Prev 76114 / 398502 Next

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:
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 have also experimented with explicit open/close but without any more
success, though, R claims that the connections will be closed.

Any ideas?  Is it my misunderstanding?  What exactly means a
connection is "in use"?

Thanks in advance,

Ott
_                
platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
status                    
major    2                
minor    1.1              
year     2005             
month    06               
day      20               
language R