isOpen.character {R.utils}R Documentation

Checks if there is an open connection in R to a file

Description

Checks if there is an open connection in R to a file.

Usage

## S3 method for class 'character':
isOpen(pathname, rw=c("read", "write"), ...)

Arguments

pathname An character string.
rw A character vector. If "read", a file is considered to be open if there exist an open connection that can read from that file. If "write", a file is considered to be open if there exist an open connection that can write to that file. Both these values may be specified.
... Not used.

Value

Returns TRUE if there exists a file connection that is open, otherwise FALSE.

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

See isOpen() in connections. showConnections().


[Package R.utils version 1.1.7 Index]