Re: [Rd] Invalid connection after closing?

2011-04-08 Thread Prof Brian Ripley
On Fri, 8 Apr 2011, Joris Meys wrote: Thx for the information. I read it, but I wasn't sure what was going on inside. Then perhaps you needed to do your homework: the references on the help page would have explained it to you. Is there a way to close a connection without destroying it? Gue

Re: [Rd] Invalid connection after closing?

2011-04-08 Thread Joris Meys
Thx for the information. I read it, but I wasn't sure what was going on inside. Is there a way to close a connection without destroying it? Guess not, but you never know... Cheers Joris On Fri, Apr 8, 2011 at 5:09 PM, Duncan Murdoch wrote: > On 08/04/2011 10:56 AM, Joris Meys wrote: >> >> Dear a

Re: [Rd] Invalid connection after closing?

2011-04-08 Thread Duncan Murdoch
On 08/04/2011 10:56 AM, Joris Meys wrote: Dear all, I do not completely understand following behaviour : > con<- file("test.txt") > isOpen(con) [1] FALSE > open(con) > isOpen(con) [1] TRUE > close(con) > isOpen(con) Error in isOpen(con) : invalid connection > str(con) Classes 'file', 'co

[Rd] Invalid connection after closing?

2011-04-08 Thread Joris Meys
Dear all, I do not completely understand following behaviour : > con <- file("test.txt") > isOpen(con) [1] FALSE > open(con) > isOpen(con) [1] TRUE > close(con) > isOpen(con) Error in isOpen(con) : invalid connection > str(con) Classes 'file', 'connection' atomic [1:1] 3 ..- attr(*, "conn_id")