Skip to content

methods::trace fails when signature specified

2 messages · Martin Morgan, John Chambers

#
With

 > R.version.string
[1] "R version 2.15.0 alpha (2012-03-14 r58748)"

trying to trace a method using the 'signature' argument fails rather 
than enabling the trace:

 > trace(initialize, signature="ANY")
Error in matchSignature(signature, fdef, where) :
   trying to match a method signature of class ?signature?; expects a 
list or a character vector
#
Thanks. Should be fixed in r-devel and 2.15 alpha from revision 58756.

(Nothing to do with trace() particularly.   Low-level code to create 
"signature" objects was not returning an S4 object.)
On 3/14/12 9:48 PM, Martin Morgan wrote: