DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
Errors |
When an error occurs the message may not always be as insightful as
one would like. The traceback function can be used to
review the sequence of function calls that lead to the error:
> fun1 <- function(v){fun2(v)} > fun2 <- function(v){x.no.name + y.other.name} > fun1(10) Error in fun2(v) : object "x.no.name" not found > traceback() 2: fun2(v) 1: fun1(10) |