Re: [R] getAnywhere

2008-10-14 Thread Prof Brian Ripley
eval(substitute(getAnywhere(x), list(x=name))) It's a standard (if advanced) code snippet from the ideas of 'computing on the language'. getAnywhere is written the way it is because it is intended for interactive use, especially for frustrated users who can't find an object that appears in e

Re: [R] getAnywhere

2008-10-14 Thread Gabor Grothendieck
Try this: do.call(getAnywhere, list(name)) On Tue, Oct 14, 2008 at 6:02 PM, Bastian A. <[EMAIL PROTECTED]> wrote: > Hi List, > > I am trying to look up an object using getAnywhere, where the object I > am looking for is given by the _value_ of the variable I am looking > for. Since getAnywhere c

Re: [R] getAnywhere

2007-09-21 Thread Duncan Murdoch
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) :

Re: [R] getAnywhere

2007-09-21 Thread Duncan Murdoch
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) :