Skip to content
Prev 312640 / 398506 Next

Line numbers with errors and warnings?

Le dimanche 02 d?cembre 2012 ? 09:02 -0500, Duncan Murdoch a ?crit :
OK. But isn't it technically possible to compute a line number even when
no source file is present? If you call fix() on any function, you will
get something like a source file even if srcfile was not set. So it
could make sense to have a line number referring to what you would see
in fix(). Or at least, the last executed line when calling browser() or
when using options(error=recover), like gdb does.

This could be especially useful for packages that were not installed
with keep.source=TRUE. It could even help getting more useful error
messages on R-help...

Regards