From sfalcon at fhcrc.org  Wed May 30 22:51:52 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Wed, 30 May 2007 13:51:52 -0700
Subject: [Rd] Possible changes to connections
In-Reply-To: <Pine.LNX.4.64.0705301726400.11532@gannet.stats.ox.ac.uk> (Brian
	Ripley's message of "Wed, 30 May 2007 18:06:43 +0100 (BST)")
References: <Pine.LNX.4.64.0705301726400.11532@gannet.stats.ox.ac.uk>
Message-ID: <m2myzmc9w7.fsf@ziti.local>

Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
> When I originally implemented connections in R 1.2.0, I followed the model 
> in the 'Green Book' closely.  There were a number of features that forced 
> a particular implementation, and one was getConnection() that allows one 
> to recreate a connection object from a number.
>
> I am wondering if anyone makes use of this, and if so for what?

I don't see any uses of it in the Bioconductor package sources.

> It would seem closer to the R philosophy to have connection objects that 
> get garbage collected when no R object refers to them.  This would allow 
> for example
>
> readLines(gzfile("foo.gz"))

I think this would be a nice improvement as it matches what many
people already assume happens as well as matches what some other
languages do (in particular, Python).

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
http://bioconductor.org



[Rd] Possible changes to connections
Seth Falcon