[R] Referencing function name from within function

From: Johannes Graumann <johannes_graumann_at_web.de>
Date: Tue 03 Apr 2007 - 08:33:03 GMT


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



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 and provide commented, minimal, self-contained, reproducible code. Received on Tue Apr 03 18:57:46 2007

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 03 Apr 2007 - 12:30:48 GMT.

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