[R] learning to debug

Fred J. phddas at yahoo.com
Sun Mar 21 15:09:47 CET 2004


Hello
I am trying to follow the instruction in README.debug
on how to debug a code I wrote, so since it only shows
the steps on how to debug a built in function and not
a code in an *.R file, so ok, let me do this and maybe
later I can find out how to code my code in
filename.R.
now
> library(debug)
Loading required package: mvbutils 
MVBUTILS: no "tasks" vector found in ROOT
Loading required package: tcltk 
> x <- 1:30
> mtrace(mean)
> mean(x)
Error in match.fun(FUN) : evaluation is nested too
deeply: infinite recursion?
Error: evaluation is nested too deeply: infinite
recursion?
well, I thought I was doing thing right, what now?

thanks much




More information about the R-help mailing list