check is a generic function for validating the inputs of class objects.

check(object, ...)

Arguments

object

object to check.

...

Further arguments passed to or from other methods. Currently unused.

Value

If validation is successful, returns the object in question; otherwise, informs the user that an error has occurred.