[R] EMACS/ESS problems

Murad Nayal mn216 at columbia.edu
Fri Oct 3 03:38:02 CEST 2003



that was exactly what I was missing, Everything now works as advertised.
Thank you all so much for the help. you just turned my already very
satisfying experience using R into a even more enjoyable one.

all the best

Rich Heiberger wrote:
> 
> It looks like you are not using ESS correctly.  ESS is designed to
> work from a buffer containing a file whose name has the ".r" extension.
> Thus, open a file, for example,
>    C-x C-f myfile.r
> and then start using R.
> 
> My diagnosis is based on your line
> > highlight: (either in a text buffer or *ESS*)
> 
> ESS won't work from a text buffer because R code has different
> requirements from ordinary written paragraphs in English or another
> natural language.
> 
> The *ESS* buffer is part of the background mechanism that makes ESS work.
> It is not intended that a user ever look at the *ESS* buffer.
> 
> One other issue that your original email suggests.  We do not
> recommend the statement
>    v=c(1,2,3)
> for assignment.  It is much better to use the assignment arrow
>    v <- c(1,2,3)
> (with spaces on both sides of the arrow for legibility).  It is true
> that the "=" will usually do what you expect, but there are some subtle
> differences (mostly in argument lists to functions).  While I can expand on
> the reasons, for the moment I just want to suggest that you get into the
> habit of using the assignment arrow.
> 
> Rich

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