Learn R Programming

R.oo (version 1.26.0)

isPublic.Class: Checks if a class is defined public or not

Description

Checks if a class is defined public or not. A class is public if it is neither private nor protected.

Usage

# S3 method for Class
isPublic(this, ...)

Value

Returns TRUE if the class is public, otherwise FALSE.

Arguments

...

Not used.

Author

Henrik Bengtsson

See Also

class(). setConstructorS3(). For more information see Class.

Examples

Run this code
  if (!isPublic(RccViolationException))
    throw("The class RccViolationException should be public.")

Run the code above in your browser using DataLab