Description Usage Arguments Value Note See Also Examples
Split a string based on whitespace ignore single- and double quoted entries
1 | str_to_opts(x = character())
|
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. |
A character array that could be similar to that provided by
commandArgs
.
not-exported, by design
1 2 3 4 5 6 7 | ## Not run:
str <- 'cmd -t "Say Anything" --character \'Lloyd Dobler\''
str_to_opts(str)
split_ws_nonquote(str)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.