setWriteProtected.Alphabet: Set the write protection field for an object

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the write protection field for an object. Write protected objects cannot be modified through get/set methods and virtual fields.

Usage

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

Arguments

this

An object.

value

A logical vector of size one.

...

Not used.

Value

Invisible 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
11
12
	# create an object
	o<-Alphabet()
	# toggle write protection
	setWriteProtected(o,TRUE)
	# check write protection
	o$writeProtected
	# set write protection via virtual field
	o$writeProtected<-FALSE
	o$writeProtected


 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.