Description Usage Arguments Examples
Transform arguments as a pairs of flag and values
1 2 |
flag |
option parameter |
arg |
option arguments, provide empty string for no arguments |
spacer |
for parameters |
expect |
number of parameters to expect if given any (for required number of parameters use 'mandatory') |
mandatory |
number of mandatory parameters (for optional parameters use 'expect') |
parrot |
repeat flag for each list element ? |
mark |
flag marker |
1 2 3 4 5 6 | as_argument("merged", TRUE) #== "-merged"
as_argument("merged", FALSE) #== ""
as_argument("op", NA) #== ""
as_argument("op", "123") #== "-op 123"
as_argument("op", c(1, 2, 3)) #== "-op 1 2 3"
as_argument("op", list(c(1, 2, 3), c(4, 5, 6)), parrot = TRUE) #== "-op 1 2 3 -op 4 5 6"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.