When .dat
is a data.frame
, both .dat_list
and .dat_df
are TRUE
.
When arguments are present in ...
, dots_present
is TRUE
but FALSE
otherwise.
When all items in ...
are single numbers, all_dots_num
is TRUE
and all other list members are FALSE
.
When all items in ...
are matrices, all_dots_mats
is TRUE
and all other list members are FALSE
.
When all items in ...
are lists, all_dots_list
is TRUE
and all other list members are FALSE
.
When all items in ...
are vectors (including lists), all_dots_vect
is TRUE
.
When all items in ...
have length > 1, all_dots_longer_than_1
is TRUE
.
When all items in ...
are character strings, all_dots_char
is TRUE
and all other list members are FALSE
.
The various FUN_arg_*
components give information about the arguments to FUN
.
FUN_arg_all_names
gives the names of all arguments to FUN
,
regardless of whether they have default values.
FUN_arg_default_names
gives the names of only those arguments with default values.
FUN_arg_default_values
gives the values of the default arguments,
already eval()
ed in the global environment.
When there are no values in a category, NULL
is returned.
thus, if FUN
has no arguments with default values assigned in the signature of the function,
both FUN_arg_default_names
and FUN_arg_default_values
will be NULL
.
If FUN
has no arguments, all of
FUN_arg_all_names
, FUN_arg_default_names
and FUN_arg_default_values
will be NULL
.
keep_args
is a named list()
of arguments,
which indicates which arguments to keep from which source
(...
, .dat
, or default args to FUN
)
by order of preference,
...
over .dat
over default arguments to FUN
.
Arguments not used by FUN
are kept,
again according to the rules of preference.