hdx.sockconn | R Documentation |
Writes then reads a socket connection.
## S3 method for class 'sockconn' hdx(x, text, write.sep = "\n", write.useBytes = FALSE, timeout = NULL, ...)
x |
Socket connection. |
text |
Lines of text to write to the socket connection, a character vector. Writes all the lines before reading. |
write.sep |
Line separator written after every line of |
write.useBytes |
Suppresses re-encoding of marked strings. |
timeout |
Seconds to wait for ready socket, a numeric; or wait
indefinitely, |
... |
Arguments passed on to
|
The second half of the half-duplex communication, the scan half, terminates on remote buffer flush, not necessarily on a line termination. Typically the server side socket will automatically flush when it sees a line terminator. It could however flush for other reasons, in which case the scan will complete.
## Not run: hdx(con, c("hello", "world"), what = character()) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.