Input and output raw connections.
rawConnection(object, open = "r")<p></p><p>rawConnectionValue(con)</p>
| Parameter | Description |
|---|---|
object |
character or raw vector. A description of the connection. For an input this is an R raw vector object, and for an output connection the name for the connection. |
open |
character. Any of the standard connection open modes. |
con |
An output raw connection. |
# NOT RUN {
zz <- rawConnection(raw(0), "r+") # start with empty raw vector
writeBin(LETTERS, zz)
seek(zz, 0)
readLines(zz) # raw vector has embedded nuls
seek(zz, 0)
writeBin(letters[1:3], zz)
rawConnectionValue(zz)
close(zz)
# }