debugging - How do I track down where a R package function fails? -
possible duplicate:
general suggestions debugging r?
i've encountered error when calling function r package. briefly,
> library(treemap) > ... > tmplot(x,index=c("r1","r2","r3","r4"),vsize="size") error in if (maxi == 1) { : missing value true/false needed
this so question gives more details.
i examined source code of tmplot
typing tmplot
@ r prompt, line fails doesn't appear in function. means, assume, it's failing in function called tmplot
.
what's best way track down? example, can generate stack trace somehow? there interactive debugger allow me step through , see error happens?
traceback print call stack.
traceback()
also, have @ on-line debug function. although have seen better interactive debuggers, there basic functionality provided debug(), debugonce() , undebug()
?base::debug
Comments
Post a Comment