opts_raw {constructive} | R Documentation |
Constructive options for type 'raw'
Description
These options will be used on objects of type 'raw'.
Depending on constructor
, we construct the object as follows:
-
"as.raw"
(default): Useas.raw()
, orraw()
when relevant -
"charToRaw"
: UsecharToRaw()
on a string, if the a raw vector contains a zero we fall back to the "as.raw" constructor.
To set options on all atomic types at once see opts_atomic().
Usage
opts_raw(
constructor = c("as.raw", "charToRaw"),
...,
trim = NULL,
fill = c("default", "rlang", "+", "...", "none"),
compress = TRUE,
representation = c("hexadecimal", "decimal")
)
Arguments
constructor |
String. Name of the function used to construct the object. |
... |
Additional options used by user defined constructors through the |
trim |
|
fill |
String. Method to use to represent the trimmed elements. See |
compress |
Boolean. If |
representation |
For "as.raw" constructor. Respectively generate output
in the formats |
Value
An object of class <constructive_options/constructive_options_raw>