[Rd] Problem with sink() in 1.20 on Windows (PR#779)

Prof Brian Ripley ripley@stats.ox.ac.uk
Wed, 20 Dec 2000 12:33:15 +0000 (GMT)


On Wed, 20 Dec 2000, [iso-8859-1] Jens Oehlschlägel wrote:

> 
> 
> Dear Prof. Ripley,
> 
> You wrote
> > Yes, but what is the bug exactly?  
> 
> Just testing connections, I think the bug is that the help for sink says that:
> 
>   If `file' is a connection if will be opened if necessary.
>      Switching to another file or connection closes the existing
>      connection unless it is the console.
> 
> and after switching to another file or connection the existing connection is not closed.
> 
> > showConnections()
>      class description mode text isopen can read can write
> > sink("tempfile")
> > sink()
> > showConnections()
>   class      description mode text   isopen   can read can write
> 3 "tempfile" "file"      "w"  "text" "opened" "no"     "yes"    
> > # now we have silently an open connection left

Um, actually it is closed but not removed from the list.  But I have 
put a fix in for 1.2.1, that closes it properly.


-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._