File: isOpen.character.Rd

package info (click to toggle)
r-cran-r.utils 2.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,864 kB
  • sloc: sh: 18; makefile: 6
file content (51 lines) | stat: -rw-r--r-- 1,409 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
% 
%  isOpen.character.R
% 
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\name{isOpen.character}
\alias{isOpen.character}

\title{Checks if there is an open connection to a file}

\usage{
\method{isOpen}{character}(pathname, rw=c("read", "write"), ...)
}

\description{
 Checks if there is an open connection to a file.
}

\arguments{
  \item{pathname}{An \code{\link[base]{character}} \code{\link[base]{vector}}.}
  \item{rw}{A \code{\link[base]{character}} \code{\link[base]{vector}}.
    If \code{"read"}, a file is considered to be open if there exist an
    open connection that can read from that file.
    If \code{"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.
  }
  \item{...}{Not used.}
}

\value{
  Returns a \code{\link[base]{logical}} \code{\link[base]{vector}} indicating for each file whether there
  exists an open file \code{\link[base:connections]{connection}} or not.
}

\author{Henrik Bengtsson}

\seealso{
  See \code{isOpen()} in \code{\link[base]{connections}}.
  \code{\link[base]{showConnections}}().
}



\keyword{methods}
\keyword{IO}
\keyword{utilities}