str_to_opts {optigrab} | R Documentation |
Split a string bases on whitespace
Description
Split a string based on whitespace ignore single- and double quoted entries
Usage
str_to_opts(x = character())
Arguments
x |
character; string to parse as if it is a command line This is an internal function used predominantly for testing. It might be deprecated in the near future. |
Value
A character array that could be similar to that provided by
commandArgs
.
Note
not-exported, by design
See Also
Examples
## Not run:
str <- 'cmd -t "Say Anything" --character \'Lloyd Dobler\''
str_to_opts(str)
split_ws_nonquote(str)
## End(Not run)
[Package optigrab version 0.9.2.1 Index]