The R Project SVN R

Rev

Rev 59039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61433
Line 14... Line 14...
14
rawConnection(object, open = "r")
14
rawConnection(object, open = "r")
15
 
15
 
16
rawConnectionValue(con)
16
rawConnectionValue(con)
17
}
17
}
18
\arguments{
18
\arguments{
19
  \item{object}{character or raw vector.  A description of the connection. 
19
  \item{object}{character or raw vector.  A description of the connection.
20
    For an input this is an \R raw vector object, and for an output
20
    For an input this is an \R raw vector object, and for an output
21
    connection the name for the connection.
21
    connection the name for the connection.
22
  }
22
  }
23
  \item{open}{character.  Any of the standard connection open modes.}
23
  \item{open}{character.  Any of the standard connection open modes.}
24
  \item{con}{An output raw connection.}
24
  \item{con}{An output raw connection.}
Line 27... Line 27...
27
  An input raw connection is opened and the raw vector is copied
27
  An input raw connection is opened and the raw vector is copied
28
  at the time the connection object is created, and \code{close}
28
  at the time the connection object is created, and \code{close}
29
  destroys the copy.
29
  destroys the copy.
30
 
30
 
31
  An output raw connection is opened and creates an \R raw vector
31
  An output raw connection is opened and creates an \R raw vector
32
  internally.  The raw vector can be retrieved \emph{via} 
32
  internally.  The raw vector can be retrieved \emph{via}
33
  \code{rawConnectionValue}.
33
  \code{rawConnectionValue}.
34
 
34
 
35
  If a connection is open for both input and output the initial raw
35
  If a connection is open for both input and output the initial raw
36
  vector supplied is copied when the connections is open
36
  vector supplied is copied when the connections is open
37
}
37
}
Line 51... Line 51...
51
 
51
 
52
  On (rare) platforms where \code{vsnprintf} does not return the needed length
52
  On (rare) platforms where \code{vsnprintf} does not return the needed length
53
  of output there is a 100,000 character limit on the length of line for
53
  of output there is a 100,000 character limit on the length of line for
54
  output connections: longer lines will be truncated with a warning.
54
  output connections: longer lines will be truncated with a warning.
55
}
55
}
56
 
56
 
57
\seealso{
57
\seealso{
58
  \code{\link{connections}}, \code{\link{showConnections}}.
58
  \code{\link{connections}}, \code{\link{showConnections}}.
59
}
59
}
60
 
60
 
61
\examples{
61
\examples{