[R] mtrace() fails

Norm Matloff matloff at cs.ucdavis.edu
Sun May 13 00:33:13 CEST 2007

I find the R debug package very useful.  I've installed and used it on
several of the machines I use, without problems, but on one machine I
get the following error:

   Loading required package: mvbutils
   Loading required package: utils
   MVBUTILS: no "tasks" vector found in ROOT
   Loading required package: tcltk
   Loading Tcl/Tk interface ... done
   [Previously saved workspace restored]
   > source("marbles.r")
   > mtrace(sim4)
   > sim4(100)
   Error in all.levs[[j]] : subscript out of bounds

Here's my setting:

   > sessionInfo()
   R version 2.5.0 (2007-04-23)
   attached base packages:
   [1] "stats"     "graphics"  "grDevices" "datasets"  "tcltk"     "utils"
   [7] "methods"   "base"
   other attached packages:
      debug mvbutils
   "1.1.0"  "1.1.1"

Any suggestions anyone might have would be highly appreciated.

Norm Matloff

More information about the R-help mailing list