Related: I found the problem eventually. It was a parameter that was too large and the function called "stop".
Looking at the documentation I see I can supply my own error handler. Cool. Are there already written error handlers that dump a stack trace? cheers Worik On Thu, Mar 18, 2010 at 2:58 PM, Worik R <wor...@gmail.com> wrote: > I have a large programme that after running half an hour or so fails with > an error > > Error in x[value] <- NA : only 0's may be mixed with negative subscripts > > How can I find out where that error occurs? > > If I have to do a binary search using error messages it will take a long > time! Is there some way I can generate a stack trace? > > cheers > Worik > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.