From joehl@web.de  Wed Dec 20 12:56:49 2000
From: joehl@web.de (=?iso-8859-1?Q? Jens=20Oehlschl=E4gel ?=)
Date: Wed, 20 Dec 2000 13:56:49 +0100
Subject: [Rd] Inconsistency in creating/opening/closing/destroying connections
Message-ID: <200012201256.NAA01807@mailgate3.cinetic.de>

I expected close() to be the opposite of open(), but

> # create a connection
> con <- file("ex.data")
> # open it
> open(con, "w")
> # close it
> close(con)
> # re-open it
> open(con, "w")
Error in open.connection(con, "w") : invalid connection
> 
> con
Error in summary.connection(x) : invalid connection
> # is obviously pointing to a non-existing connection

help to showConnections obviously also was assuming that there may EXIST something like a CLOSED connection, as it says 
all logical: if true all connections, including CLOSED ONES and the standard ones are displayed. If false only open user-created connections are included. 

So this is at least a documentation bug, but what about having something like

CreateConnection
  OpenConnection
  CloseConnection
DestroyConnection

Is there any reason to have (as currently) OpenConnection seperated from CreateConnection but CloseConnection and DestroyConnection combined?

Regards


Jens Oehlschlgel


--please do not edit the information below--

Version:
 platform = i386-pc-mingw32
 arch = x86
 os = Win32
 system = x86, Win32
 status = 
 major = 1
 minor = 2.0
 year = 2000
 month = 12
 day = 15
 language = R

Windows NT 4.0 (build 1381) Service Pack 6

Search Path:
 .GlobalEnv, package:ctest, Autoloads, package:base

_______________________________________________________________________________
Alles unter einem Dach: Informationen, Fun, E-Mails. Bei WEB.DE: http://web.de
Die groe Welt der Kommunikation: E-Mail, Fax, SMS, WAP: http://freemail.web.de

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Inconsistency in creating/opening/closing/destroying connections
=?iso-8859-1?Q? Jens=20Oehlschl=E4gel ?=