read_str | R Documentation |
Read character string from a connection.
read_str(con)
read_str_raw(con, n)
read_utf8(con)
read_utf8_raw(con, n)
con |
Connection object or raw vector. Connection objects can be
created with |
n |
number of characters to read. |
Functions which have a suffix of _raw
are for handling character
strings without a nul-terminator.
single character string
Other data input functions:
read_f64()
,
read_hex()
,
read_raw()
,
read_uint8()
,
scan_dbl()
con <- rawConnection(c(charToRaw("hello12.3"), as.raw(0)))
read_str(con)
close(con)
con <- rawConnection(charToRaw("hello12.3"))
read_str_raw(con, 5)
close(con)
con <- rawConnection(c(charToRaw("hello12.3"), as.raw(0)))
read_utf8(con)
close(con)
con <- rawConnection(charToRaw("hello12.3"))
read_utf8_raw(con, 3)
close(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.