Learn R Programming

RBaseX (version 0.1.4)

input_to_raw: Title RbaseX_Utility

Description

Convert input to a length-1 character vector.

Usage

input_to_raw(input, addZero = FALSE)

Arguments

input

Character vector length 1

addZero

If TRUE, add a zero-byte (0x00) to the raw-vector

Value

'Raw' vector

Details

If input is a reference to a file, the number of bytes corresponding to the size is read. If it is an URL, the URL is read and converted to a 'Raw' vector. The function does not catch errors.