Wow, even those of us who have been using S for more than 25 years (and R since well before version 1.0) still have things to learn since R keeps improving. So I stand corrected (well sit actually) on the part about not keeping track of this sort of thing.
On Thu, Jun 7, 2012 at 3:04 AM, Duncan Murdoch <murdoch.dun...@gmail.com> wrote: > On 12-06-05 4:58 PM, Michael wrote: >> >> Hi all, >> >> How do I obtain the current active path of a function that's being called? >> >> That's to say, I have several source files and they all contain definition >> of function A. >> >> I would like to figure out which function A and from which file is the one >> that's being called and is currently active? > > > You've had lots of good suggestions so far. One more possibility: > > getSrcFilename > > and the related functions in the same help topic will usually tell you the > filename and other location information for functions that you source(). > > Duncan Murdoch > > > ______________________________________________ > R-help@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. -- Gregory (Greg) L. Snow Ph.D. 538...@gmail.com ______________________________________________ R-help@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.