These options will be used on objects of type 'raw'.
Depending on constructor
, we construct the object as follows:
"charToRaw"
: Use charToRaw()
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().
opts_raw(
constructor = c("as.raw", "charToRaw"),
...,
trim = NULL,
fill = c("default", "rlang", "+", "...", "none"),
compress = TRUE,
representation = c("hexadecimal", "decimal")
)
An object of class <constructive_options/constructive_options_raw>
String. Name of the function used to construct the object.
Additional options used by user defined constructors through the opts
object
NULL
or integerish. Maximum of elements showed before it's trimmed.
Note that it will necessarily produce code that doesn't reproduce the input.
This code will parse without failure but its evaluation might fail.
String. Method to use to represent the trimmed elements. See ?opts_atomic
Boolean. If TRUE
instead of c()
Use seq()
, rep()
when relevant to simplify the output.
For "as.raw" constructor. Respectively generate output
in the formats as.raw(0x10)
or as.raw(16)