Re: [Rd] Recent setClass fails where previous succeeded

2009-03-29 Thread John Chambers
It's the result of fixing a previous bug ( that Martin Maechler uncovered). Suppose that "A" was on another package. Then the result of as(new("B"), "A") had the wrong package in its class. The construction of the as() method stored in the "contains" slot of class "B" will generate an object fro

[Rd] Recent setClass fails where previous succeeded

2009-03-28 Thread Martin Morgan
These lines of code setClass("A", representation(x="numeric")) setMethod(initialize, "A", function(.Object, ...) stop("oops")) setClass("B", representation("A")) result in > setClass("B", representation("A")) Error in initialize(value, ...) : oops in R version 2.9.0 alpha (2009-03-28 r48239) R