[R] get() versus getAnywhere()

David Winsemius dwinsemius at comcast.net
Sun Apr 19 05:23:47 CEST 2009


I doubt that it will cure all of the R documentation complaints, but  
this R-news article by Ligges answered all on my questions on the  
topic of accessing source (see page 43):

www.r-project.org/doc/Rnews/Rnews_2006-4.pdf

I learned to use methods() and then to use the full function names to  
which calls got dispatched.

-- 
David Winsemius


On Apr 18, 2009, at 8:47 PM, Rolf Turner wrote:

>
> On 17/04/2009, at 10:21 PM, Duncan Murdoch wrote:
>
>> Benjamin Tyner wrote:
>>> Many thanks Duncan. Perhaps this merits a more explicit note in the
>>> documentation?
>>>
>>
>> The quote I gave is from the documentation.  How could it be more  
>> explicit?
>
> This is unfortunately typical of the attitude of R-core people  
> toward the
> documentation.  ``It's clear.'' they say.  ``It's explicit.''  Clear  
> and
> explicit once you *know* what it's saying.  Not before, but.
>
> In this case the documentation is quite opaque to me, and I would  
> suspect
> to a good many like me.  Now that you have made it *genuinely*  
> explicit,
> I can understand what the documentation is saying.  Prior to that I  
> wouldn't
> have had a prayer of guessing that get() would sometimes find things  
> that
> getAnywhere() would not find.
>
> Moreover, if getAnywhere() does not really mean ``get *anywhere*''  
> then its
> name is misleading.  Surely it wouldn't be too tough to modify  
> getAnywhere()
> so that it really got anywhere.  E.g. get it to call get() when it  
> can't
> find an object with a given name?
>
> 	cheers,
>
> 		Rolf
>
> ######################################################################
> Attention:\ This e-mail message is privileged and confid...{{dropped: 
> 9}}
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list