Hi, 

Is there a way to retrieve the parsed location of currently executed
function?

In other words, how to define a function "foo" such that when sourced
from a file "file_with_foo.R" containing foo() at line 1, it should
print:

    foo called in file_with_foo.R at line 1


Thanks, 

  Vitalie

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to