read_raw: Read raw bytes

View source: R/read-utf.R

read_rawR Documentation

Read raw bytes

Description

Read raw bytes

Usage

read_raw(con, n = 1)

Arguments

con

Connection object or raw vector. Connection objects can be created with file(), url(), rawConnection() or any of the other many connection creation functions.

n

Number of elements to read. Default: 1

Value

raw vector

See Also

Other data input functions: read_f64(), read_hex(), read_str(), read_uint8(), scan_dbl()

Examples

con <- rawConnection(charToRaw("hello12.3"))
read_raw(con, 5)
close(con)

ctypesio documentation built on April 3, 2025, 7:28 p.m.