This function checks if the specified arguments of a function match the expected type. It is useful for validating function inputs.
Arguments
- AllArgs
Character vector. Input parameters of the function. Usually as a result of
formals()
function- Args
Character vector. Names of the arguments to be checked.
- Type
Character. The expected type of the arguments. Must be one of "character", "logical", or "numeric".