Displaying 2 results from an estimated 2 matches for "sinkfile".
Did you mean:
linkfile
2005 Jul 27
2
Redirecting Messages and Errors to a file
Hello all,
I'm trying to setup a simple construct that will email me all errors,
warnings, and output of a sample R script. My initial thought was to use
sink() and tryCatch around the script such that at the end of the script
any output would be mailed to me, i.e.:
sinkFile <- tempfile()
sink(sinkFile)
tryCatch({
[R script]},
finally = {
sink()
if (length(readLines(sinkFile)))
mailOutput(readLines(sinkFile))
})
However, the sink() does not seem to be capturing the error messages as
I would have hoped. That is, if the R-script is {print("abc");...
2004 Dec 06
3
[Bug 941] Poor transfer from Windows to Linux
http://bugzilla.mindrot.org/show_bug.cgi?id=941
djm at mindrot.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From djm at mindrot.org 2004-12-06 17:08