Re: [R] Help needed: plotting with no device

2003-09-30 Thread Ross Boylan
On Mon, 2003-09-29 at 14:25, Luke Tierney wrote:
 Look at ?Signal and see if that would help.  You may need to rename
 the appropriate .RData beforehand to be safer.
 
 luke
For those who follow, note it's actually
?Signals
you want. It talks about USR1 and USR2 (as did some other people in this
thread).

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] Help needed: plotting with no device

2003-09-29 Thread Ross Boylan
I have a hung session I would very much like to recover, since it has
some simulation results I haven't saved (that took about 12 hours to
create).  Yes, I know, I should have saved while I had the chance.

I tried to do a hist() in an environment without a plotting device.
My R session now seems to be hung; ^C doesn't do anything.  I thought
it would timeout, but it has not so far.

The details of this session's environment are a bit baroque.  In case
it matters, here they are:
Running an xterm locally, used the screen program to start a shell.
Ran R.
Then, from a remote computer, used ssh to log in (without X forwarding
enabled).  Grabbed the session by doing screen -d -r.  (screen lets
you trade the controlling tty of a session; that's why I was using
it).

After detaching and reattaching the session a couple of times (still
remote) I did
 hist(tres4$singles[[a]])
tres4$singles is a dataframe.
I can still type on the terminal, but get no response.

R 1.7.1 on Debian.

Is there any way to get the R session back without killing it?

Thanks.

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Help needed: plotting with no device

2003-09-29 Thread Ben Bolker

  Can you use save.image() to rescue your results?
  I would try save.image(file=salvage.RData) and see if the file 
appears.  Otherwise I would say you're probably out of luck.

  

On Mon, 29 Sep 2003, Ross Boylan wrote:

 I have a hung session I would very much like to recover, since it has
 some simulation results I haven't saved (that took about 12 hours to
 create).  Yes, I know, I should have saved while I had the chance.
 
 I tried to do a hist() in an environment without a plotting device.
 My R session now seems to be hung; ^C doesn't do anything.  I thought
 it would timeout, but it has not so far.
 
 The details of this session's environment are a bit baroque.  In case
 it matters, here they are:
 Running an xterm locally, used the screen program to start a shell.
 Ran R.
 Then, from a remote computer, used ssh to log in (without X forwarding
 enabled).  Grabbed the session by doing screen -d -r.  (screen lets
 you trade the controlling tty of a session; that's why I was using
 it).
 
 After detaching and reattaching the session a couple of times (still
 remote) I did
  hist(tres4$singles[[a]])
 tres4$singles is a dataframe.
 I can still type on the terminal, but get no response.
 
 R 1.7.1 on Debian.
 
 Is there any way to get the R session back without killing it?
 
 Thanks.
 
 __
 [EMAIL PROTECTED] mailing list
 https://www.stat.math.ethz.ch/mailman/listinfo/r-help
 

-- 
620B Bartram Hall[EMAIL PROTECTED]
Zoology Department, University of Floridahttp://www.zoo.ufl.edu/bolker
Box 118525   (ph)  352-392-5697
Gainesville, FL 32611-8525   (fax) 352-392-3704

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Help needed: plotting with no device

2003-09-29 Thread Ross Boylan
On Mon, Sep 29, 2003 at 05:09:49PM -0400, Ben Bolker wrote:
 
   Can you use save.image() to rescue your results?
   I would try save.image(file=salvage.RData) and see if the file 
 appears.  Otherwise I would say you're probably out of luck.
 
The problem is I can't get back to the command prompt, so I can't do
save.image() or anything else.

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Help needed: plotting with no device

2003-09-29 Thread Luke Tierney
Look at ?Signal and see if that would help.  You may need to rename
the appropriate .RData beforehand to be safer.

luke

On Mon, 29 Sep 2003, Ross Boylan wrote:

 On Mon, Sep 29, 2003 at 05:09:49PM -0400, Ben Bolker wrote:
  
Can you use save.image() to rescue your results?
I would try save.image(file=salvage.RData) and see if the file 
  appears.  Otherwise I would say you're probably out of luck.
  
 The problem is I can't get back to the command prompt, so I can't do
 save.image() or anything else.
 
 __
 [EMAIL PROTECTED] mailing list
 https://www.stat.math.ethz.ch/mailman/listinfo/r-help
 

-- 
Luke Tierney
University of Iowa  Phone: 319-335-3386
Department of Statistics andFax:   319-335-3017
   Actuarial Science
241 Schaeffer Hall  email:  [EMAIL PROTECTED]
Iowa City, IA 52242 WWW:  http://www.stat.uiowa.edu

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Help needed: plotting with no device

2003-09-29 Thread Jason Turner
Ross Boylan wrote:

On Mon, Sep 29, 2003 at 05:09:49PM -0400, Ben Bolker wrote:

 Can you use save.image() to rescue your results?
 I would try save.image(file=salvage.RData) and see if the file 
appears.  Otherwise I would say you're probably out of luck.

The problem is I can't get back to the command prompt, so I can't do
save.image() or anything else.
It may be possible to reconstruct the state from a core dump.  I say 
may with not much confidence it'll be worth the effort, but it might 
be possible.

Only problem is, there's no way I know under Linux to dump core and 
continue; you only get one shot at it.

man 7 signal on my SuSE box gives a list of which signals cause a 
process to dump core.  After that, you'll have to find a Local Guru to 
pick it apart - and R's memory structures aren't trivial.

It might be easier to start again.

Hope it helps

Jason
--
Indigo Industrial Controls Ltd.
http://www.indigoindustrial.co.nz
64-21-343-545
[EMAIL PROTECTED]
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] Help needed: plotting with no device

2003-09-29 Thread Thomas Lumley
On Mon, 29 Sep 2003, Ross Boylan wrote:

 I have a hung session I would very much like to recover, since it has
 some simulation results I haven't saved (that took about 12 hours to
 create).  Yes, I know, I should have saved while I had the chance.

 I tried to do a hist() in an environment without a plotting device.
 My R session now seems to be hung; ^C doesn't do anything.  I thought
 it would timeout, but it has not so far.

You may be able to send SIGUSR1 to the process, which tells it to quit and
save, or SIGUSR2, which is quit and save without running .Last and
.on.exit stuff.  It depends on how badly it is wedged.

-thomas

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help