I think this is something of an FAQ, though it may
not appear in the official listings of such.
Execute
> options(warn=2)
That converts warnings to errors; then you can use traceback()
to discern where the errors occurred.
cheers,
Dear All,
I modified a script of mine to allow it to work with complex numbers.
I now have some warnings of this kind:
Warning messages:
1: imaginary parts discarded in coercion
2: imaginary parts discarded in coercion
and so on.
I would like to be able to find out where in the code something