Hello,

Is there a way to get the name of the function currently running?
I'd like to have something like this
        x <- function(){
                myName <- getNameOfCurrentFunction
                cat(myName)
        }
so that
        x()
would result in
        "x"

Thanks for any pointers,

Joh

______________________________________________
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.

Reply via email to