Is it possible to get a line number with an error report?

I have a long script and an error:

Error in `[.xts`(x, xsubset) : subscript out of bounds


It would be very helpful, and save a lot of time, if there was some
indication in the error message which line the error was.

I can find it using binary search but that is a painful process.

cheers
Worik

	[[alternative HTML version deleted]]

