[R] function call

From: <vincent_at_7d4.com>
Date: Mon 19 Jun 2006 - 19:53:37 EST


Dear R-users,

When a function f1() is called, is there a way to know, from inside the function f1(), if f1() is directly called from the R console, or indirectly from another function f2() ?

Of course, I may add an argument to f1(..., callbyf2=FALSE) only used by f2() giving explicitely this info, but I would like to know if there may be a more generic way ?

Thanks for any info or pointer



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jun 19 19:57:55 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 20 Jun 2006 - 00:11:03 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.