Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

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)



Copyright © Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
The PDF version is a formatted comprehensive draft book (with over 800 pages).
Brought to you by Togaware. This page generated: Sunday, 22 August 2010