Helper that identifies input arguments thanks to their IFC classes even if they are not or mis named.
whoami(
entries = as.list(match.call()),
search = list(info = "IFC_info", param = "IFC_param", offsets = "IFC_offset"),
reinit = TRUE
)
a list whose members are 'fileName': value of fileName if provided as a named argument in entries and all classes defined in 'search'
arguments from the function whoami
is called.
/!\ whoami
MUST be called explicitly this way: whoami(entries = as.list(match.call())).
a non duplicated named list of classes to search for entries.
whether to reinitialize arguments to their default values in called environment. Default is TRUE.
if two argument of the same 'search' class are found an error will be thrown.
'fileName' will be searched every time.
-at first, as an argument (named or not) of the class designated in 'search' to be the "fileName",
-otherwise, as an argument (named or not) of class `fileName`,
-otherwise, as a named argument of name "fileName" that was not found using 'search',
-and finally, if still not found as the first not named argument not found in 'search' of type string.