Learn R Programming

phylosim (version 3.0.5)

getWriteProtected.Sequence: 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

# S3 method for Sequence
getWriteProtected(this, ...)

Arguments

this

An object.

...

Not used.

Value

TRUE or FALSE

See Also

For more information see Sequence.

Examples

Run this code
# NOT RUN {
       # create an object
       o<-Sequence()
       # toggle write protection
       o$writeProtected<-TRUE
       # check if it's write protected
       getWriteProtected(o)
       # check write protection via virtual field
       o$writeProtected

 
# }

Run the code above in your browser using DataLab