Re: [R] S4 classes and debugging - Is there a summary?

2010-07-02 Thread Martin Maechler
> Martin Morgan > on Fri, 02 Jul 2010 07:01:54 -0700 writes: > On 07/02/2010 05:05 AM, Joris Meys wrote: >> Dear all, >> >> I'm getting more and more frustrated with the whole S4 thing and I'm >> looking for a more advanced summary on how to deal with them. Often

Re: [R] S4 classes and debugging - Is there a summary?

2010-07-02 Thread Joris Meys
On Fri, Jul 2, 2010 at 4:01 PM, Martin Morgan wrote: > >  selectMethod(xyValues, c('RasterLayer', 'matrix')) > > would be my choice. > Thanks, that's a discovery. I guess I misunderstood the help pages on that one. > > I don't really have the right experience, but Chamber's 2008 Software > for Dat

Re: [R] S4 classes and debugging - Is there a summary?

2010-07-02 Thread Martin Morgan
On 07/02/2010 05:05 AM, Joris Meys wrote: > Dear all, > > I'm getting more and more frustrated with the whole S4 thing and I'm > looking for a more advanced summary on how to deal with them. Often I > get error messages that don't make sense at all, or the code is not > doing what I think it would

Re: [R] S4 classes and debugging - Is there a summary?

2010-07-02 Thread Joris Meys
Correction: trace off course works when specifying the signature. so eg: trace(xyValues,tracer=browser,signature=c(object="RasterLayer", xy="matrix")) allows me to browse through the function. Should have specified the signature, I overlooked that. Still, if there's a manual on S4 that anybody lik

[R] S4 classes and debugging - Is there a summary?

2010-07-02 Thread Joris Meys
Dear all, I'm getting more and more frustrated with the whole S4 thing and I'm looking for a more advanced summary on how to deal with them. Often I get error messages that don't make sense at all, or the code is not doing what I think it would do. Far too often inspecting the code requires me to