Hi Karl,
that is expected. The moment you close a connection, it is destroyed as well
(see ?close). A destroyed connection cannot be tested. In fact, I've used
isOpen() only in combination with the argument rw.
con <- file("clipboard",open="r")
isOpen(con,"write")
[1] FALSE
cheers
On Thu, Jun 19, 2014 at 3:10 PM, Karl Forner <karl.forner at gmail.com> wrote:
"isOpen returns a logical value, whether the connection is currently
open."
But actually it seems to die on closed connections:
con <- file()
isOpen(con)
Error in isOpen(con) : invalid connection
Is it expected ?
Tested on R-3.0.2 and R version 3.1.0 Patched (2014-06-11 r65921) on
linux x86_64
Karl