Re: [R] Determining name of calling function.

2009-09-28 Thread baptiste auguie
Not answering your question, but just pointing out the example of base::.NotYetImplemented() essentially doing the same thing. Best, baptiste 2009/9/28 Rolf Turner r.tur...@auckland.ac.nz: I have vague recollections of seeing this question discussed on r-help previously, but I can't find

Re: [R] Determining name of calling function.

2009-09-28 Thread Peter Dalgaard
baptiste auguie wrote: Not answering your question, but just pointing out the example of base::.NotYetImplemented() essentially doing the same thing. Best, baptiste 2009/9/28 Rolf Turner r.tur...@auckland.ac.nz: I have vague recollections of seeing this question discussed on

Re: [R] Determining name of calling function.

2009-09-28 Thread Peter Dalgaard
(Oops, that was of course intended for Rolf, not Baptiste) Peter Dalgaard wrote: baptiste auguie wrote: Not answering your question, but just pointing out the example of base::.NotYetImplemented() essentially doing the same thing. Best, baptiste 2009/9/28 Rolf Turner

[R] Determining name of calling function.

2009-09-27 Thread Rolf Turner
I have vague recollections of seeing this question discussed on r-help previously, but I can't find the relevant postings. I want to determine (from within a given function) the name of the function calling that given function. E.g. if I have a function foo() which calls a function bar(),

Re: [R] Determining name of calling function.

2009-09-27 Thread Gabor Grothendieck
Not sure if this is important to you but R functions don't have to have names so what you get back won't be a name if the function was anonymous. In the example below an anonymous function calls fname and the returned string is the calling sequence but that's not its name since it has no name.

Re: [R] Determining name of calling function.

2009-09-27 Thread Rolf Turner
On 28/09/2009, at 12:34 PM, Gabor Grothendieck wrote: Not sure if this is important to you but R functions don't have to have names so what you get back won't be a name if the function was anonymous. In the example below an anonymous function calls fname and the returned string is the calling