[R-SIG-Finance] How to use the debugger/broser in a R package function
Jeff Ryan
jeff.a.ryan at gmail.com
Wed Aug 20 21:40:52 CEST 2008
This is probably (certainly) a question for R-help, but since
cross-posting isn't too nice, I'll answer.
You need to find the method that is being dispatched on.
methods(kfilter)
> methods(kfilter)
[1] kfilter.SS kfilter.ssm
These can then be viewed or used in the debug() call:
debug(kfilter.SS) or debug(kfilter.ssm)
undebug will stop the debugging.
see ?debug
HTH
Jeff
Those with an asterisk will be unexported, so you'll need to prefix with
On Wed, Aug 20, 2008 at 2:33 PM, Verschuere Benjamin
<benverschuere at hotmail.com> wrote:
>
> Hi,
>
> I have small question. Basically I am trying to see what is going inside function from a R package (in my case the "kfilter" function in sspir package).
> The problem is that when I try to see what is going inside "kfilter" I have that:
>> kfilter
> function (ss)
> {
> UseMethod("kfilter")
> }
> <environment: namespace:sspir>
>
> I have been told that the debugger might help, but I dont know how to use it. Or maybe there is a better way?
>
> Thanks in advance for the help.
>
> Benjamin
>
> _________________________________________________________________
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
>
--
Jeffrey Ryan
jeffrey.ryan at insightalgo.com
ia: insight algorithmics
www.insightalgo.com
More information about the R-SIG-Finance
mailing list