[R] EMACS/ESS problems

Murad Nayal mn216 at columbia.edu
Thu Oct 2 20:06:31 CEST 2003


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!



TyagiAnupam at aol.com wrote:
> 
> 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 at 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 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
> >

-- 
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




More information about the R-help mailing list