Re: [Rd] NAMESPACEs and S4 classes

2008-02-18 Thread Martin Morgan
Thank you for the explanation; I saw that class definitions were stored in package-level .__C__* and in a global cache methods:::.classTable, but was not sure which was meant to be definitive. I'm hoping your bug fix will address identically named sealed classes in different packages -- I hope to

Re: [Rd] NAMESPACEs and S4 classes

2008-02-18 Thread John Chambers
Let's start from a simpler description, because the use of "sealed" adds some confusion. Here's a basic version. I have two packages, P2 and P3, with different definitions of "myClass". Classes with the same name on two packages are supposed to work, at least for generating objects. There

[Rd] NAMESPACEs and S4 classes

2008-02-17 Thread Martin Morgan
I'd like to have two packages with S4 classes with the same name but different implementation. To that end I create a package tmpA with setClass("A", representation=representation( x="numeric"), sealed=TRUE) setClass("B", representation=representation(