Possible Duplicate:
General suggestions for debugging R?
I've encountered an error when calling a function from an R package. Briefly,
> library(treemap)
> ...
> tmPlot(X,index=c("r1","r2","r3","r4"),vSize="size")
Error in if (maxI == 1) { : missing value where TRUE/FALSE needed
This SO question gives more details.
I examined the source code of tmPlot
by typing tmPlot
at the R prompt, but the line that fails doesn't appear in the function. Which means, I assume, that it's failing in some function called by tmPlot
.
What's the best way to track this down? For example, can I generate a stack trace somehow? Is there an interactive debugger that will allow me to step through and see where the error happens?