[R] Emacs & ESS under Windows

Dr. Marc R. Feldesman marc at ch2.ch.pdx.edu
Mon Mar 5 20:58:59 CET 2001


> Now, when you open a *.R file, this opens directly Emacs and ESS. To run R
> under Emacs, type Alt-x R, and then Enter (this will open a DOS-like
> window, so you have to come back to Emacs). You switch between the
> different files, buffers, processes, ... with the menu "Buffers". When you
> edit a *.R file you can evaluate the R expressions with the "ESS" menu by
> selecting "eval buffer".

With the changes to the files, I was able to get this 
combination to work beautifully under Windows 2000.  I'm 
an utter novice with Emacs & ESS, but figured that since I 
wanted some "scripting" capabilities for R like those built 
into S-Plus 2000 (& 6.0 & earlier version SP4+), this might 
be one way to accomplish it.

Couple of questions:

1.  I've been working in the rgui and have a data directory 
defined for each project I'm working on.  It there a 
straightforward way to link the existing project directories 
(and the .Rdata files) with instances of emacs+ESS  or 
does this have to be done manually each time?   I don't 
want to reinvent the wheel.  I know that I can use:

 M-x ess-create-object-name-db

which seems to "import" the .RData file into the emacs\bin 
directory.  I'd like to keep the .RData file in its own project 
directory along with source code, text files, and various 
types of output files.  I'd also like to make certain the 
updates to data, code, etc stay in that project directory.  I 
didn't see any "quick and dirty" explanation for how to do 
this.  

2.  I noticed that under Emacs+ESS + R I am unable to 
tile the graphics window of R with the buffer window of 
Emacs.  Is there an Emacs (or ESS) sequence that 
forces the child windows to tile?

Thanks for your help.




********************************
 Dr.  Marc R. Feldesman                         
 Professor and Chairman, Anthropology Department
 Portland State University                      
 e-mail:  feldesmanm at pdx.edu 
 http://odin.pdx.edu/~h1mf                   
 fax: (503)-725-3905                            
 voice: (503)-725-3081                            
              
                           
"Don't where I'm goin'
Don't like where I've been
There may be no exit
But hell, I'm goin' in"                       

Powered by Macrochoerus

****************************
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list