RE: [R] making a log file with error messages?

From: <OlsenN_at_pac.dfo-mpo.gc.ca>
Date: Tue 03 May 2005 - 07:40:19 EST


One way is to define your own function to use as the "error" option value. E.g.

my.error.fun <- function() {

   cat(geterrmessage(), file="rerr.txt", append=T) }

then,

options("error"=my.error.fun)

Norm

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Chaehyung Ahn Sent: Monday, May 02, 2005 1:32 PM
To: r-help@stat.math.ethz.ch
Subject: [R] making a log file with error messages?

Dear all:

Is there anyone who would help me to generate a log file reporting error messages?

I can see error messages on the screen, but I would like to report them as a file.

thanks

Sincerely,

cahn



ChaeHyung Ahn (cahn) Ph.D.
Department of Biostatistics, School of Public Health CB #7420, University of North Carolina Chapel Hill, NC 27599-7420 phone: 919-966-7284
home: http://cyworld.nate.com/cahn88

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 03 07:49:27 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:32 EST