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 triggers these messages. I am asking if there is some tool to help debug an R script (even something which allows you to execute only part of a long script and monitor which quantities get changed would be very useful). Kind Regards Lorenzo
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, Rolf Turner rolf at math.unb.ca