Re: [Rd] Enhancement request: anonymous connections

2006-01-03 Thread Seth Falcon
On 1 Jan 2006, [EMAIL PROTECTED] wrote: > However, that just isn't how connections are documented in the Green > Book (referenced on all the relevant help pages, so required > reading) and getConnection() allows you to create an R object > pointing to a connection that previously had none. Yes,

Re: [Rd] Enhancement request: anonymous connections

2006-01-01 Thread Duncan Murdoch
On 1/1/2006 1:05 PM, Prof Brian Ripley wrote: > On Sun, 1 Jan 2006, Duncan Murdoch wrote: > > >>On 12/28/2005 9:50 AM, Seth Falcon wrote: >> >>>On 27 Dec 2005, [EMAIL PROTECTED] wrote: >>> >>> This is a bug in load, isn't it? load() opens the connection but doesn't close it. >>> >>> >>>W

Re: [Rd] Enhancement request: anonymous connections

2006-01-01 Thread Prof Brian Ripley
On Sun, 1 Jan 2006, Duncan Murdoch wrote: > On 12/28/2005 9:50 AM, Seth Falcon wrote: >> On 27 Dec 2005, [EMAIL PROTECTED] wrote: >> >>> This is a bug in load, isn't it? load() opens the connection but >>> doesn't close it. >> >> >> Well, it may be that load needs a small fix, but that doesn't fi

Re: [Rd] Enhancement request: anonymous connections

2006-01-01 Thread Duncan Murdoch
On 12/28/2005 9:50 AM, Seth Falcon wrote: > On 27 Dec 2005, [EMAIL PROTECTED] wrote: > >>This is a bug in load, isn't it? load() opens the connection but >>doesn't close it. > > > Well, it may be that load needs a small fix, but that doesn't fix > anonymous connections in general, IMO. No it d

Re: [Rd] Enhancement request: anonymous connections

2005-12-28 Thread Byron Ellis
I think what you're suggesting is that connections should become first-class citizens in the R world by becoming a CONSXP, an EXTPTRSXP + Finalizer or whatever (which wouldn't bother me a bit, BTW). Then they'd play by the same rules as everything else, although you might want to have an ex

Re: [Rd] Enhancement request: anonymous connections

2005-12-28 Thread Seth Falcon
On 27 Dec 2005, [EMAIL PROTECTED] wrote: > This is a bug in load, isn't it? load() opens the connection but > doesn't close it. Well, it may be that load needs a small fix, but that doesn't fix anonymous connections in general, IMO. The loop could easily have been: for (i in 1:50) { print(l

Re: [Rd] Enhancement request: anonymous connections

2005-12-27 Thread Duncan Murdoch
On 12/27/2005 7:59 PM, Seth Falcon wrote: > I would like to be able to use anonymous connections in R and have > them close themselves when they go out of scope. > > Here is an example of what I think should work, but does not at > present: > > ## create test file > x <- 1:10 > fn <- "anon-con-t