s-news
[Top] [All Lists]

How to debug a generic function?

To: s-news@wubios.wustl.edu
Subject: How to debug a generic function?
From: Agin.Patrick@hydro.qc.ca
Date: Tue, 24 Aug 2004 10:04:09 -0400

Dear all,

 

Is there a way to debug a simple generic function? Mine (say plot.foo) has the form:

 

function(x,...)

UseMethod("plot")

 

I would like to inspect my code but enter is forbidden ("UseMethod is a primitive; cannot enter"). Is there a way to do it better than inspect(plot.foo) directly?

I have the same problem with do.call("plot.foo").

 

Thanks a lot,

Patrick

 

<Prev in Thread] Current Thread [Next in Thread>
  • How to debug a generic function?, Agin . Patrick <=