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 at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Chaehyung Ahn
Sent: Monday, May 02, 2005 1:32 PM
To: r-help at 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 at 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