Check that a set of arguments inherits from a set of classes Throws an exception if one argument does not pass the checks. Argument must have AT LEAST ONE of the specified classes to pass.
Source:R/make_inheritance_checks.R
make_inheritance_checks.Rd
Check that a set of arguments inherits from a set of classes Throws an exception if one argument does not pass the checks. Argument must have AT LEAST ONE of the specified classes to pass.
Arguments
- arguments
a list object containing argument_name=argument pairs for each argument. Argument names must be provided or else they will be ignored.
- target_classes
character vector of the classes to check for.
- ignore_null
boolean. Indicates whether to ignore arguments with value NULL (TRUE) or to throw an exception (FALSE). Default = TRUE.