On Thu, 10 Jan 2002, Sven Garbade wrote:
> Hi all,
>
> I'm writing a function that read data from a binary file. I want to
> close all opened connections, but it failed:
>
> > showConnections()
> description class mode text isopen can read can write
> 3 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 4 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 5 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 6 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 7 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 8 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 9 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 10 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 11 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 12 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> 13 "daten/t5_all.mea" "file" "rb"
"binary" "opened" "yes" "no"
> > closeAllConnections()
> Error in close(set[i]) : no applicable method for "close"
> In addition: Warning message:
> no sink to remove
>
> What does this mean?
Which version of R is this? From the NEWS for 1.4.0:
o closeAllConnections() works again, and closes all sink() diversions.
You can always close them individually with close()
--
Brian D. Ripley, ripley at 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-help 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-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._