Hello all, since we're on the topic of R-editors. I am using emacs/ess on a unix workstation (to interact with R and have been having a little problem. I usually write the R commands I need to run in a separate buffer then copy and paste them into the *R* buffer for evaluation. The problem is, if any command is spread over multiple lines emacs/R hangs when I paste it in the R buffer for evaluation. if I use a debugger to see what's going on in both programs they're usually waiting on a select statement (input/output). Anybody has had to deal with a similar situation. any advice for a workaround? both emacs/ess are relatively recent versions (installed a few months ago). I tried using ess-eval-buffer/region instead of cutting and pasting and the same thing happens for me. many thanks -- Murad Nayal M.D. Ph.D. Department of Biochemistry and Molecular Biophysics College of Physicians and Surgeons of Columbia University 630 West 168th Street. New York, NY 10032 Tel: 212-305-6884 Fax: 212-305-6926
1. I've never seen this behavior, ever. Do you get the same with C-c C-r (highlight region, then C-c C-r sends to the R process in Emacs). Or, if you use C-c C-n to step through the lines....? 2. ess-help at stat.math.ethz.ch might be a better place to send this. Murad Nayal <mn216 at columbia.edu> writes:> Hello all, > > since we're on the topic of R-editors. I am using emacs/ess on a unix > workstation (to interact with R and have been having a little problem. I > usually write the R commands I need to run in a separate buffer then > copy and paste them into the *R* buffer for evaluation. The problem is, > if any command is spread over multiple lines emacs/R hangs when I paste > it in the R buffer for evaluation. if I use a debugger to see what's > going on in both programs they're usually waiting on a select statement > (input/output). Anybody has had to deal with a similar situation. any > advice for a workaround? both emacs/ess are relatively recent versions > (installed a few months ago). I tried using ess-eval-buffer/region > instead of cutting and pasting and the same thing happens for me. > > many thanks > > -- > Murad Nayal M.D. Ph.D. > Department of Biochemistry and Molecular Biophysics > College of Physicians and Surgeons of Columbia University > 630 West 168th Street. New York, NY 10032 > Tel: 212-305-6884 Fax: 212-305-6926 > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- rossini at u.washington.edu http://www.analytics.washington.edu/ Biomedical and Health Informatics University of Washington Biostatistics, SCHARP/HVTN Fred Hutchinson Cancer Research Center UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable FHCRC (M/W): 206-667-7025 FAX=206-667-4812 | use Email CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}
May be putting the comment character, #, at the end of the lines that are continued will solve do the problem. As in, a <- data.frame(cbind(v1, v2, # 1st line v3, v4, # 2nd line v5)) In a message dated 10/2/03 10:22:07 AM Pacific Daylight Time, rossini@blindglobe.net writes:> 1. I've never seen this behavior, ever. Do you get the same with C-c C-r > (highlight region, then C-c C-r sends to the R process in Emacs). Or, > if you use C-c C-n to step through the lines....? > > 2. ess-help@stat.math.ethz.ch might be a better place to send this. > > > Murad Nayal <mn216@columbia.edu> writes: > > >Hello all, > > > >since we're on the topic of R-editors. I am using emacs/ess on a unix > >workstation (to interact with R and have been having a little problem. I > >usually write the R commands I need to run in a separate buffer then > >copy and paste them into the *R* buffer for evaluation. The problem is, > >if any command is spread over multiple lines emacs/R hangs when I paste > >it in the R buffer for evaluation. if I use a debugger to see what's > >going on in both programs they're usually waiting on a select statement > >(input/output). Anybody has had to deal with a similar situation. any > >advice for a workaround? both emacs/ess are relatively recent versions > >(installed a few months ago). I tried using ess-eval-buffer/region > >instead of cutting and pasting and the same thing happens for me. > > > >many thanks > > > >-- > >Murad Nayal M.D. Ph.D. > >Department of Biochemistry and Molecular Biophysics > >College of Physicians and Surgeons of Columbia University > >630 West 168th Street. New York, NY 10032 > >Tel: 212-305-6884 Fax: 212-305-6926 >[[alternative HTML version deleted]]
Try eval-line&step C-c C-n in ESS (no cut and paste), and omit the semi-colon at the end of the statement. In a message dated 10/2/03 11:12:37 AM Pacific Daylight Time, mn216@columbia.edu writes:> Hi, > > It didn't help in this case > > in *scratch* > > v = c(1, # > 2, # > 3); > > highlight then ess-eval-region (hangs) > C-g then switch to *R* you see: > > >v = c(1, # > + 2, # > + > > I had to type ')' to stop the continuation > > Also per Sundar's suggestion > > >.Options$continue > [1] "+ " > > I am hoping some of this might give someone a clue as to what's going > on! > >[[alternative HTML version deleted]]