Check if the object is write protected

Description

Check if the object is write protected. Write protected objects cannot be modified through get/set methods and virtual fields.

Usage

1
2
## S3 method for class 'Alphabet'
getWriteProtected(this, ...)

Arguments

this

An object.

...

Not used.

Value

TRUE or FALSE.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Alphabet.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
       # create an object
       o<-Alphabet()
       # toggle write protection
       o$writeProtected<-TRUE
       # check if it's write protected
       getWriteProtected(o)
       # check write protection via virtual field
       o$writeProtected

 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.