[Rd] viral setClassUnion?

From: Martin Morgan <mtmorgan_at_fhcrc.org>
Date: Thu 30 Nov 2006 - 20:06:53 GMT

I'm looking for help with the following warning message:

Subclass "A" of class "numeric" is not local and cannot be updated for new inheritance information; consider setClassUnion() in: .checkSubclasses(class1, classDef, class2, classDef2, where1)

I see this with, e.g.,


in a package with

DESCRIPTION: SaveImage: yes

and a single R file with

setClass("A", contains="numeric")
setClassUnion("B", members="numeric")
setClassUnion("D", members="character")
setClass("C", contains="character")

The order of setClass / setClassUnion, rather than the contains / members type, is important; there is no message about C / D.

R version 2.5.0 Under development (unstable) (2006-11-30 r40072) x86_64-unknown-linux-gnu


attached base packages:
[1] "stats" "graphics" "grDevices" "utils" "datasets" "methods"
[7] "base"

Martin T. Morgan
Bioconductor / Computational Biology

R-devel@r-project.org mailing list
Received on Fri Dec 01 07:20:29 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 30 Nov 2006 - 20:31:01 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.