.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. Specifies the control options to set. The valid value is any combination of the following.
  • "all"
  • "keepInteger"
  • "quoteExpressions"
  • "showAttributes"
  • "useSource"
  • "warnIncomplete"
  • "delayPromises"
  • "keepNA"
  • "S_compatible"
  • "noSplitLines"

Details

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 resulting 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.
Value
returns an integer representing the control options. See Details for more information.
If control contains any string that does not match the predefined strings, then this function returns an error.
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
dput, parse, paste, substitute, get.
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

Package base version 6.0.0-69
Package Index