[R] Executing a command at interrupt

From: Dennis Fisher <fisher_at_plessthan.com>
Date: Thu, 22 May 2008 11:00:13 -0700


Colleagues,

I am executing a large batch file in R (2.7.0) in OS X (Leopard) or Linux (Fedora).

Usually, R completes normally and executes wrap-up commands. However, occasionally, R is "killed" externally, e.g., "kill xxxx" from the OS. When that happens, the wrap-up is not executed.

Is there some means in R to execute a final command. .Last does not accomplish this under my set of circumstances.

Dennis

Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-415-564-2220
www.PLessThan.com

        [[alternative HTML version deleted]]



R-help_at_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. Received on Thu 22 May 2008 - 18:07:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 22 May 2008 - 18:30:39 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive