cmd_list_interp {cmdfun} | R Documentation |
Convert list of function arguments to list of command flags
Description
Function also handles error checking to ensure args contain valid data types, and looks for common usage mistakes.
Usage
cmd_list_interp(args, flag_lookup = NULL)
Arguments
args |
named list output from get*Args family of functions. |
flag_lookup |
optional named vector used to convert args to command flags |
Details
The list structure is more amenable to manipulation by package developers for advanced use before evaluating them to the command flags vector with cmd_list_to_flags().
Value
named list
Examples
theFunction <- function(...){cmd_args_all()}
theArgs <- theFunction(arg1 = "value", arg2 = TRUE)
flagList <- cmd_list_interp(theArgs)
flags <- cmd_list_to_flags(flagList)
[Package cmdfun version 1.0.2 Index]