[R] getAnywhere

Duncan Murdoch murdoch at stats.uwo.ca
Fri Sep 21 19:02:24 CEST 2007


On 9/21/2007 12:16 PM, Giovanni Petris wrote:
> Hello,
> 
> How can I see a function called "+.dlm"?
> 
>> methods("+")
> [1] +.Date   +.dlm*   +.POSIXt
> 
>    Non-visible functions are asterisked
>> getAnywhere("+.dlm")
> Error in grep(pattern, x, ignore.case, extended, value, fixed, useBytes) : 
> 	invalid regular expression '+\.dlm'
> 
> Thanks in advance,
> Giovanni
> 

This looks like a bug in getS3method.  Since "+" has special meaning in 
the regular expression, it should be escaped, and it wasn't.

I'll fix it.

Duncan Murdoch



More information about the R-help mailing list