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? Thanks, Robert Robert McGehee Geode Capital Management, LLC 53 State Street, 5th Floor | Boston, MA | 02109 Tel: 617/392-8396 Fax:617/476-6389 mailto:robert.mcgehee@geodecapital.com This e-mail, and any attachments hereto, are intended for us...{{dropped}}
"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