enve.cliopts {enveomics.R} | R Documentation |
Enveomics: Cliopts
Description
Generates nicely formatted command-line interfaces for functions (closures only).
Usage
enve.cliopts(
fx,
rd_file,
positional_arguments,
usage,
mandatory = c(),
vectorize = c(),
ignore = c(),
number = c(),
defaults = list(),
o_desc = list(),
p_desc = ""
)
Arguments
fx |
Function for which the interface should be generated. |
rd_file |
(Optional) .Rd file with the standard documentation of the function. |
positional_arguments |
(Optional) Number of positional
arguments passed to |
usage |
(Optional) Usage passed to |
mandatory |
Mandatory arguments. |
vectorize |
Arguments of the function to vectorize (comma-delimited).
If numeric, use also |
ignore |
Arguments of the function to ignore. |
number |
Force these arguments as numerics. Useful for numeric
vectors (see |
defaults |
Defaults to use instead of the ones provided by the formals. |
o_desc |
Descriptions of the options. Help from |
p_desc |
Description Description of the function. Help from |
Value
Returns a list with keys:
options
, a named list with the values for the function's argumentsargs
, a vector with zero or more strings containing the positional arguments
Author(s)
Luis M. Rodriguez-R [aut, cre]