Learn R Programming

astro (version 1.2)

writeBin64: Transfer Binary Data To a Connection

Description

Write binary data to a connection.

Usage

writeBin64(object, con, size = NA_integer_, endian = .Platform$endian, useBytes = FALSE)

Arguments

object
An R object to be written to the connection.
con
A connection object or a character string naming a file or a raw vector.
size
integer. The number of bytes per element in the byte stream. The default, 'NA_integer_', uses the natural size. Size changing is not supported for raw and complex vectors.
endian
The endian-ness ('big' or 'little') of the target system for the file. Using 'swap' will force swapping endian-ness.
useBytes
See 'writeLines'.

Details

An extension of the standard R function writeBin. This 64-bit extension splits data into 2^30 chunks, and writes each out sequentially, overcoming the 2^31-1 limit of the original function.

See Also

The astronomy package: astro.