Re: [R] error logging

2009-12-28 Thread Nick Torenvliet
Beauty thank-you... I'm crashing but I'll check that out in a couple when I get back. Must go snowboarding tomorrow! On Mon, Dec 28, 2009 at 11:20 PM, Gabor Grothendieck < ggrothendi...@gmail.com> wrote: > Try this: > > logfile <- file("logfile") > open(logfile, "w") > sink(logfile, type = "mess

Re: [R] error logging

2009-12-28 Thread Gabor Grothendieck
Try this: logfile <- file("logfile") open(logfile, "w") sink(logfile, type = "message") 1/"a" # generate an error On Mon, Dec 28, 2009 at 11:11 PM, Nick Torenvliet wrote: > Yet another question... > > I'm wondering if there is a built in facility to log errors.   I've got this > statement that

[R] error logging

2009-12-28 Thread Nick Torenvliet
Yet another question... I'm wondering if there is a built in facility to log errors. I've got this statement that gives me verbose DBI errors as they come up (to standard output), but I'd like to trap and log them to a file as I running about 300 sql statements through this particular piece