[R] Referencing function name from within function

Johannes Graumann johannes_graumann at web.de
Tue Apr 3 10:33:03 CEST 2007


Hello,

For verbose coding I'd like to do something like:
> myfunction <- function(x){
>       if (a){
>               stop(paste(myfunction_name_here,"requires xyz!")
>       }       
Is that possible?

Thanks for any hints, Joh



More information about the R-help mailing list