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.

Reply via email to