Skip to content

introspective capabilities

3 messages · Christophe Rhodes, Duncan Murdoch, Mark Bravington

#
Duncan Murdoch <murdoch.duncan at gmail.com> writes:
Thanks.  This is enough for my immediate purposes: supporting
single-keystroke (M-.) jumping to source locations of functions.
Thank you.

Is there anything like a cross-referencing database within R?  The
functionality I'm looking for here is to be able to name a function, and
come back with a list of functions (or srcrefs) where that name is
used.  (I realise that this is not in general possible; just the
lexically-apparent cases would be enough).

Cheers,

Christophe
#
On 01/09/2010 9:27 AM, Christophe Rhodes wrote:
There is no such database already built, but I imagine the functions in 
the codetools package could construct one. 

Duncan Murdoch
#
Hi Christophe

You could also look at the 'foodweb' function in package 'mvbutils'-- and specifically 'callers.of'. It should do just what you want, though you do have to tell it which environments to search through.

bye
Mark