arg() is intended for user use, while arg0() is for developers and does
not perform argument validation.
arg(tag, value, indicator = FALSE, lgl2int = FALSE, format = "%s", sep = " ")arg0(
tag,
value,
indicator = FALSE,
lgl2int = FALSE,
format = "%s",
sep = " ",
allow_null = FALSE,
arg = caller_arg(value),
call = caller_call()
)
A string.
A string specifying argument tag, like "-i", "-o".
Value passed to the argument.
A logical value specifying whether value should be an
indicator of tag. If TRUE, logical value will explain the set or unset of
tag.
A logical value indicates whether transfrom value TRUE to
1 or FALSE to 0. If TRUE, format will always be set to "%d".
The format of the value, details see sprintf.
A character string used to separate "tag" and "value", usually
" " or "=".
A single logical value indicates whether value can be
NULL.
An argument name as a string. This argument will be mentioned in error messages as the input that is at the origin of a problem.
The execution environment of a currently running function.