Re: [R] email notification after error
Patrick Connolly wrote: On Thu, 13-Aug-2009 at 05:48PM -0700, caltechneurostudy wrote: | | Does anybody know if it's possible to have R send an email or execute an | additional line of code in case an error is generated from a running script? | I am running R on a cluster and would like to have it kill the job if R | generates an error, but as it is, the job just keeps running until the | wallclock is done. ?try ?system concerning mails, maybe you find this helpful: http://cran.r-project.org/web/packages/sendmailR/index.html __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] email notification after error
Does anybody know if it's possible to have R send an email or execute an additional line of code in case an error is generated from a running script? I am running R on a cluster and would like to have it kill the job if R generates an error, but as it is, the job just keeps running until the wallclock is done. Thanks. -- View this message in context: http://www.nabble.com/email-notification-after-error-tp24963220p24963220.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] email notification after error
On Thu, 13-Aug-2009 at 05:48PM -0700, caltechneurostudy wrote: | | Does anybody know if it's possible to have R send an email or execute an | additional line of code in case an error is generated from a running script? | I am running R on a cluster and would like to have it kill the job if R | generates an error, but as it is, the job just keeps running until the | wallclock is done. ?try ?system | | Thanks. | -- | View this message in context: http://www.nabble.com/email-notification-after-error-tp24963220p24963220.html | Sent from the R help mailing list archive at Nabble.com. | | __ | R-help@r-project.org mailing list | https://stat.ethz.ch/mailman/listinfo/r-help | PLEASE do read the posting guide http://www.R-project.org/posting-guide.html | and provide commented, minimal, self-contained, reproducible code. -- ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. ___Patrick Connolly {~._.~} Great minds discuss ideas _( Y )_ Average minds discuss events (:_~*~_:) Small minds discuss people (_)-(_) . Eleanor Roosevelt ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.