# \donttest{
tmp <- tempfile()
# Write to existing connection with offset
con <- file(tmp, "wb")
writer <- BinaryWriter(con, byte_offset = 100L,
data_type = "integer", bytes_per_element = 4L)
unlink(tmp)
# }
Run the code above in your browser using DataLab