Hi, how can one trace a nonstandardGenericFunction, especially "initialize"? An example:
setClass("dummy", representation(a = "numeric")) setMethod("initialize", "dummy", function(.Object, a = 2) { ### I want to trace this function [EMAIL PROTECTED] <- a .Object }) setMethod("show", "dummy", function(object) print([EMAIL PROTECTED])) b <- new("dummy", a = 3) trace("show", browser, signature = "dummy") ### trace method "show" to ### class "dummy" show(b) ### works fine trace("initialize", browser, signature = "dummy") R> b <- new("dummy") ### does not trace the function of interest ... Tracing initialize(value, ...) on entry Called from: initialize(value, ...) Best, Torsten ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel