[R] get caller's name

Ernest Adrogué nfdisco at gmail.com
Thu Feb 3 17:58:11 CET 2011


 3/02/11 @ 14:30 (-0200), Henrique Dallazuanna escriu:
> Try this:
> 
> g <- function(.x) tryCatch(stop.if.dims(.x), error=function(e)sprintf("Error
> in %s: %s",  deparse(sys.call(1)), e$message))
> g(rbind(2, 3))

This is it. Thanks!

Cheers.
-- 
Ernest



More information about the R-help mailing list