Johannes Graumann
2012-Dec-10 06:01 UTC
[R] Class definition and "contains": No definition was found for superclass
Hi, What goes wrong when the following error shows up:> Error in reconcilePropertiesAndPrototype(name, slots, prototype, > superClasses, : > No definition was found for superclass ?sequencesuperclass? in the > specification of class ?sequences?Has this something to do with recursive class inheritance? "sequences" contains "sequencessuperclass" contains "rcfpdsuperclass" ... Any hint is highly appreciated. Sincerely, Joh
Martin Morgan
2012-Dec-10 16:42 UTC
[R] Class definition and "contains": No definition was found for superclass
On 12/10/2012 07:01 AM, Johannes Graumann wrote:> Hi, > > What goes wrong when the following error shows up: >> Error in reconcilePropertiesAndPrototype(name, slots, prototype, >> superClasses, : >> No definition was found for superclass ?sequencesuperclass? in the >> specification of class ?sequences? > > Has this something to do with recursive class inheritance? "sequences" > contains "sequencessuperclass" contains "rcfpdsuperclass" ... > > Any hint is highly appreciated.Hi Joh -- If I say setClass("B", contains="A") I get Error in reconcilePropertiesAndPrototype(name, slots, prototype, superClasses, : no definition was found for superclass "A" in the specification of class "B" whereas if I first define class A everything is fine > setClass("A") > setClass("B", contains="A") In a package is it important to control the order classes are defined, e.g., by defining them in a file AllClasses.R or by using the Collate: field of the DESCRIPTION file. Hope that helps. Martin> > Sincerely, Joh > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Computational Biology / Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: Arnold Building M1 B861 Phone: (206) 667-2793