Hi, I recently ran into this problem. I couldn't find any mention of it in the setClass documentation.
setClass("Foo", representation(file = "character")) setMethod("initialize", "Foo", function(.Object, file) { print(file) }) setClass("Bar", contains = "Foo") And the error: Error in print(file) : argument "file" is missing, with no default The workaround is to interchange the setMethod and the second setClass call, however, it begs the question why is setClass calling an initialize method? As always, if I have missed documentation concerning this please point me there. Thanks, jim ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel