Re: [R] warnings and errors

2009-07-30 Thread Gabor Grothendieck
Place a cat statement at the top and bottom of each script. You can force warnings to be treated like errors using options(warn = 2). options(warn = 0) turns it back again. On Thu, Jul 30, 2009 at 6:30 AM, Jan M. Wiener wrote: > Hi, > > I am using R for a while now, but I have not yet been able t

[R] warnings and errors

2009-07-30 Thread Jan M. Wiener
Hi, I am using R for a while now, but I have not yet been able to convince R to produce helpful warnings or error messages. If you run a script that sources other scripts it may take a while to understand which script produced an error or a warning. For example, R tells you that warnings exist and