[R] debugging S4 methods

sebastian mueller sebastian.mueller20 at googlemail.com
Thu Oct 1 13:02:14 CEST 2009


Hi all,

Does anyone know how to debug S4 methods? In my case I want to find an
error in the specc-function of the kernlab-package.
As this seems to be a S4-method the normal S3 debugging can't be
applied apparently (e.g. debug(s3function.someclass)).

So in my case

> debug(specc:kernlab)
seems only to debug the generic-function:

> specc:kernlab
function (x, ...)
standardGeneric("specc")
<environment: 0x9088080>

which doesn't help me. Does anyone know how to debug the real-code?

Thanks for your help!
Sebastian




More information about the R-help mailing list