.deparseOpts
Parse the Option Value into Integer Form
Description
Returns an integer representing the input options.
Usage
.deparseOpts(control)
Arguments
control |
a vector of character strings, specifying the control options to set. The
valid value is any combination of the following:
"all", "keepInteger", "quoteExpressions",
"showAttributes", "useSource", "warnIncomplete",
"delayPromises", "keepNA", "S_compatible", and "noSplitLines".
|
Details
The argument control is a character that contains one or more
of the following options:
"all", "keepInteger", "quoteExpressions",
"showAttributes", "useSource", "warnIncomplete",
"delayPromises", "keepNA", "S_compatible" and
"noSplitLines".
This function returns an integer encoding the control options by bitwise
calculation (except "all") according to their position. For example,
when "keepInteger" and "showAttributes" are specified, then the
return value is set to "00000101", which indicates that the first
item and the third item are selected, so the result integer is 5.
However, "all" means all the other options should be selected except
"delayPromises" and "S_compatible". Therefore, a call like
.deparseOpts("all") equals "01011111", or 95. If control
contains any string that does not match the predefined strings, it returns an error.
Value
returns an integer representing the control options.
Differences between TIBCO Enterprise Runtime for R and Open-source R
The "noSplitLines" option is available only in TIBCO Enterprise Runtime for R.
See Also
Examples
.deparseOpts(c("all"))
# [1] 95
.deparseOpts(c("keepInteger"))
# [1] 1
.deparseOpts(c("keepInteger", "delayPromises"))
# [1] 33
#.deparseOpts(c("keepInteger", "abc"))
# Error: deparse option 'abc' is not recognized