Does anyone know how to interrupt R in RedHat? Neither control-c nor Esc is working. What I don't want to do is close the window or kill the entire R process. Thanks, David This communication is for use by the intended recipient and ...{{dropped}}
>Does anyone know how to interrupt R in RedHat? Neither control-c nor Esc is working. What I don't want to do is close the window or kill the entire R process. > >Thanks, >David > > >Try Ctrl-Z and then to relunch it with %R from the shell-prompt. Ciao, -A. ---------------------------------------- Armin Roehrl, http://www.approximity.com We manage risk Blogs: http://blog.approximity.com http://agile.approximity.com
On 14-Jun-04 Bickel, David wrote:> Does anyone know how to interrupt R in RedHat? Neither control-c nor > Esc is working. What I don't want to do is close the window or kill the > entire R process. > > Thanks, > DavidCtrl-C should interrupt what R is doing and return you to the R command prompt. ESC (at the R command prompt) will probably be seen by 'readline' as the lead-in to an escape sequence, with possibly unpredictable results. For example,> for(i in (1:10^5)){rnorm(10)}takes about 20 seconds on my old laptop. However, if I start it again, and press Ctrl-C after a couple os seconds, then it stops almost immediately. Red Hat 9.1, R version 1.8.0 But I think R may need to unwind things that it has set up before returning to the prompt when you press Ctrl-C, so if what you were doing has made a lot of heavy stuff, then it might take a while before you get the prompt back. If Ctrl-C really won't work at all, then you may have an stty problem. In a normal xterm window (shell prompt) enter stty -a which should return a lot of stuff beginning like:> stty -aspeed 38400 baud; rows 56; columns 80; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; ... ... and you need to see the "intr = ^C". If not, then you don't have Ctrl-C set as interrupt. In which case, consult "man stty"! Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 167 1972 Date: 14-Jun-04 Time: 21:21:40 ------------------------------ XFMail ------------------------------
Patrick, control-c seems to interrupt loops, but not the display of enormous objects, as when I typed the name of a several-hundred megabyte list. Is there a way to interrupt that? control-D does not interrupt R, but kills the entire R process. Thanks, David -----Original Message----- From: Patrick Burns [mailto:pburns at pburns.seanet.com] Sent: Monday, June 14, 2004 3:02 PM To: Bickel, David Subject: Re: [R] interrupt in Linux Are you sure that R won't interrupt? Perhaps you are in some C code that doesn't pay attention to the interrupt. I have SuSe and control-C works on all of the versions of R that I've tried. Patrick Burns Burns Statistics patrick at burns-stat.com +44 (0)20 8525 0696 http://www.burns-stat.com (home of S Poetry and "A Guide for the Unwilling S User") Bickel, David wrote:>Does anyone know how to interrupt R in RedHat? Neither control-c nor Esc is working. What I don't want to do is close the window or kill the entire R process. > >Thanks, >David > > >This communication is for use by the intended recipient and ...{{dropped}} > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > > >This communication is for use by the intended recipient and ...{{dropped}}
> version_ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 1 minor 9.0 year 2004 month 04 day 12 language R -----Original Message----- From: Roger D. Peng [mailto:rpeng at jhsph.edu] Sent: Monday, June 14, 2004 3:41 PM To: Bickel, David Cc: Patrick Burns; r-help at stat.math.ethz.ch Subject: Re: [R] interrupt in Linux What version of R are you using? This was a problem in 1.8.0 but I think was fixed in 1.8.1. -roger Bickel, David wrote:> Patrick, > > control-c seems to interrupt loops, but not the display of enormous objects, as when I typed the name of a several-hundred megabyte list. Is there a way to interrupt that? > > control-D does not interrupt R, but kills the entire R process. > > Thanks, > David > > -----Original Message----- > From: Patrick Burns [mailto:pburns at pburns.seanet.com] > Sent: Monday, June 14, 2004 3:02 PM > To: Bickel, David > Subject: Re: [R] interrupt in Linux > > > Are you sure that R won't interrupt? Perhaps you are in some C > code that doesn't pay attention to the interrupt. > > I have SuSe and control-C works on all of the versions of R that > I've tried. > > > Patrick Burns > > Burns Statistics > patrick at burns-stat.com > +44 (0)20 8525 0696 > http://www.burns-stat.com > (home of S Poetry and "A Guide for the Unwilling S User") > > Bickel, David wrote: > > >>Does anyone know how to interrupt R in RedHat? Neither control-c nor Esc is working. What I don't want to do is close the window or kill the entire R process. >> >>Thanks, >>David >> >> >>This communication is for use by the intended recipient and ...{{dropped}} >> >>______________________________________________ >>R-help at stat.math.ethz.ch mailing list >>https://www.stat.math.ethz.ch/mailman/listinfo/r-help >>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >> >> >> >> > > > > > > > This communication is for use by the intended recipient and ...{{dropped}} > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html >-- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng _____________________________ David Bickel http://davidbickel.com Research Scientist Pioneer Hi-Bred International Bioinformatics & Discovery Research 7250 NW 62nd Ave., PO Box 552 Johnston, Iowa 50131-0552 515-270-0220 Home 515-334-4739 Work 515-334-6634 Fax david.bickel at pioneer.com, bickel at prueba.info This communication is for use by the intended recipient and ...{{dropped}}