From p.dalgaard at biostat.ku.dk  Thu Feb  3 17:59:17 2005
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Thu Feb  3 18:03:24 2005
Subject: [Rd] getAnywhere
In-Reply-To: <67DCA285A2D7754280D3B8E88EB5480206741E53@MSGBOSCLB2WIN.DMN1.FMR.COM>
References: <67DCA285A2D7754280D3B8E88EB5480206741E53@MSGBOSCLB2WIN.DMN1.FMR.COM>
Message-ID: <x2lla5vau2.fsf@biostat.ku.dk>

"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


[Rd] getAnywhere
Peter Dalgaard