isProtected.Class {R.oo} | R Documentation |
Checks if a class is defined protected or not.
## S3 method for class 'Class'
isProtected(this, ...)
... |
Not used. |
Returns TRUE
if the class is protected, otherwise FALSE
.
Henrik Bengtsson
class
().
setConstructorS3
().
For more information see Class
.
if (isProtected(RccViolationException))
throw("The class RccViolationException should NOT be protected.")