Re: [Rd] getAnywhere

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 04 Feb 2005 - 03:59:17 EST

"McGehee, Robert" <Robert.McGehee@geodecapital.com> writes:

> Shouldn't this work?
>
> > .a <- 5
> > exists(".a")
> [1] TRUE
> > getAnywhere(".a")
> Error in exists(x, envir, mode, inherits) :
> invalid first argument
>
> getAnywhere doesn't seem to like the "." prefix. Is this a bug?

Yes. It goes looking for getS3method(gen="", cl="a", TRUE) without checking whether gen (or cl) is empty. Looks like an easy fix.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

______________________________________________
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri Feb 04 03:15:56 2005

This archive was generated by hypermail 2.1.8 : Fri 04 Feb 2005 - 03:25:42 EST