Re: [R] Q: how to interrupt long calculation?
Paul Smith said the following at 08/29/2007 04:32 PM : The instance of R running will be immediately killed and then you can start R again. But then I would lose all the work. There must be some way to merely interrupt the current calculation. Mustn't there? __ R-help@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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] Q: how to interrupt long calculation?
On Thu, 30 Aug 2007, D. R. Evans wrote: Paul Smith said the following at 08/29/2007 04:32 PM : The instance of R running will be immediately killed and then you can start R again. But then I would lose all the work. There must be some way to merely interrupt the current calculation. Mustn't there? Only if it is long-running in R code, when ctrl-C or equivalent (Esc in Rgui) works. If it is long-running in C or Fortran code, there is not. Assuming a Unix-alike, sending SIGUSR1 will save the current workspace and quit. Even that is a little dangerous as the workspace need not be in a consistent state. People who have been bitten will learn safer programming practices, for example to call save.image() at suitable checkpoint times. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-help@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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] Q: how to interrupt long calculation?
On linux and solaris, I have had some luck doing a CTRL-Z (STOP signal) and the resuming later... some libraries have issues (I don't recall which) but...usually pretty good. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of D. R. Evans Sent: Thursday, August 30, 2007 11:56 AM Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Q: how to interrupt long calculation? Paul Smith said the following at 08/29/2007 04:32 PM : The instance of R running will be immediately killed and then you can start R again. But then I would lose all the work. There must be some way to merely interrupt the current calculation. Mustn't there? __ R-help@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 and provide commented, minimal, self-contained, reproducible code. - This email transmission and any accompanying attachments may contain CSX privileged and confidential information intended only for the use of the intended addressee. Any dissemination, distribution, copying or action taken in reliance on the contents of this email by anyone other than the intended recipient is strictly prohibited. If you have received this email in error please immediately delete it and notify sender at the above CSX email address. Sender and CSX accept no liability for any damage caused directly or indirectly by receipt of this email. __ R-help@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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] Q: how to interrupt long calculation?
Prof Brian Ripley said the following at 08/30/2007 11:00 AM : On Thu, 30 Aug 2007, D. R. Evans wrote: Paul Smith said the following at 08/29/2007 04:32 PM : The instance of R running will be immediately killed and then you can start R again. But then I would lose all the work. There must be some way to merely interrupt the current calculation. Mustn't there? Only if it is long-running in R code, when ctrl-C or equivalent (Esc in Rgui) works. If it is long-running in C or Fortran code, there is not. It's inside loess()... so isn't that R code? I can sit hitting ctrl-C all day (well, it seems like it), but the code does not get interrupted :-( Assuming a Unix-alike, sending SIGUSR1 will save the current workspace and quit. Even that is a little dangerous as the workspace need not be in a consistent state. That's helpful, thank you; at least it means I stand a chance of being able to interrupt the code and recover. __ R-help@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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] Q: how to interrupt long calculation?
On Thu, 30 Aug 2007, D. R. Evans wrote: Prof Brian Ripley said the following at 08/30/2007 11:00 AM : On Thu, 30 Aug 2007, D. R. Evans wrote: Paul Smith said the following at 08/29/2007 04:32 PM : The instance of R running will be immediately killed and then you can start R again. But then I would lose all the work. There must be some way to merely interrupt the current calculation. Mustn't there? Only if it is long-running in R code, when ctrl-C or equivalent (Esc in Rgui) works. If it is long-running in C or Fortran code, there is not. It's inside loess()... so isn't that R code? No, it is mainly Fortran, called from C called from R. I can sit hitting ctrl-C all day (well, it seems like it), but the code does not get interrupted :-( Assuming a Unix-alike, sending SIGUSR1 will save the current workspace and quit. Even that is a little dangerous as the workspace need not be in a consistent state. That's helpful, thank you; at least it means I stand a chance of being able to interrupt the code and recover. -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UKFax: +44 1865 272595 __ R-help@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 and provide commented, minimal, self-contained, reproducible code.
[R] Q: how to interrupt long calculation?
The subject says it all really: I've tried hitting control-C (multiple times), but that doesn't seem to be a reliable way to interrupt a long calculation. What is the right way to interrupt a calculation that has been proceeding for several minutes and shows no sign of finishing soon? __ R-help@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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] Q: how to interrupt long calculation?
On 29/08/2007, D. R. Evans [EMAIL PROTECTED] wrote: The subject says it all really: I've tried hitting control-C (multiple times), but that doesn't seem to be a reliable way to interrupt a long calculation. What is the right way to interrupt a calculation that has been proceeding for several minutes and shows no sign of finishing soon? I forgot to mention that this is on an amd64 system running dapper (in case that makes any difference). __ R-help@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 and provide commented, minimal, self-contained, reproducible code.
Re: [R] Q: how to interrupt long calculation?
On 8/29/07, D. R. Evans [EMAIL PROTECTED] wrote: The subject says it all really: I've tried hitting control-C (multiple times), but that doesn't seem to be a reliable way to interrupt a long calculation. What is the right way to interrupt a calculation that has been proceeding for several minutes and shows no sign of finishing soon? I forgot to mention that this is on an amd64 system running dapper (in case that makes any difference). Assuming that you are using Linux, try the command killall R The instance of R running will be immediately killed and then you can start R again. Paul __ R-help@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 and provide commented, minimal, self-contained, reproducible code.