Skip to content
Prev 9943 / 63424 Next

S4 method setClass prototype definition question

I think you didn't type what you meant to type (see below.)

Sourcing in your class descriptions with 1.7.1, I get what you expected.
An object of class "Annotation1"
Slot "x":
NULL

Slot "y":
NULL

Slot "catId":
[1] -1

Slot "isResolved":
[1] FALSE

Slot "resolve":
logical(0)

Slot "valid":
[1] TRUE
Matthias Burger wrote:
Sorry, naming it an1 still leaves it an object of class "Annotation", as
the printed output tells you.