Skip to content
Prev 309195 / 398506 Next

SPACECAP error "subscript out of bounds"

Now is the time to learn how to debug your scripts.  First order of
business is to add:

options(error = utils::recover)

to your script.  Then type in:

?recover
?browser

and carefully read the documentation.  Then when the error occurs, you
will be in the "browser" and can examine that values of the objects
and find out which one is causing the "subscript out of bounds".  Look
at the dimensions of the objects that you are using and the values of
the objects that are defining the indices.  Then you will know where
your problem is.
On Fri, Oct 26, 2012 at 4:34 PM, jmosley <asia7 at vt.edu> wrote: