[R] ESS with Xemacs? [vs. Emacs, slightly off topic]

Agustin Lobo alobo at ija.csic.es
Tue Jan 8 13:46:46 CET 2002


Happy 2002 to everyone.

I'm following Greg's directions (with some pain, as I'm not
an experienced (x)emacs user) and I find that I cannot use 
fix() in the R session. 
Before trying (x)emacs I normally had
a "raw" R sesion in an xterm and an editor in another window.
When I was done writing the function I run fix() and copied and pasted
the function to the editor session that had been opened by fix().
 
I understand that, using (x)emacs I can save the function to a
text file and source() it in R, but this seems like an odd
procedure considering that both R and the function are in 
windows of the same (x)emacs environment. Is there any simpler
way of passing the edited function to R?

By the way, is there an R-oriented guide or tutorial
to (x)emacs?

Thanks

Dr. Agustin Lobo
Instituto de Ciencias de la Tierra (CSIC)
Lluis Sole Sabaris s/n
08028 Barcelona SPAIN
tel 34 93409 5410
fax 34 93411 0012
alobo at ija.csic.es


On Mon, 7 Jan 2002, Warnes, Gregory R wrote:

> 
> Probably what is happening is that emacs is checking if it is already
> running and not starting separate executables.  Two solutions:
> 
> 1) Open a second emacs window explicitly...
> 
> 	open xemacs once with
> 		xemacs myfile.R
> 	then do 
> 		<Control>-x 5 2
> 	or 'File'->'New Frame'
> 	to get a second window.  In that one do <Meta>-X R.
> 
> 
>    Or the other way around
> 
> 	open xemacs once with
> 		xemacs -f R
> 	and then use 'File'->'Open in New Window' to open the second file.
> 
> 2) Use gnuclient to open the second window...  (you may need to put
> "(gnuserv-start)" in your .emacs file for this to work).
> 
> 	xemacs -f R
> 	gnuclient myfile.R
> 
> 	
> -Greg
> 
> 
>  >  -----Original Message-----
>  >  From: baron at cattell.psych.upenn.edu
>  >  [mailto:baron at cattell.psych.upenn.edu]
>  >  Sent: Monday, January 07, 2002 12:16 PM
>  >  To: r-help at stat.math.ethz.ch
>  >  Subject: [R] ESS with Xemacs? [vs. Emacs, slightly off topic]
>  >  
>  >  
>  >  I decided to try out Xemacs instead of Emacs in Linux (RH 7.2).
>  >  After doing lots of configuration of Xemacs, I finally discovered
>  >  a major problem.  
>  >  
>  >  With Emacs, when I use R, I start Emacs twice (at least), in
>  >  different viewports, once as
>  >   emacs -f R
>  >  and once as
>  >   emacs myfile.R
>  >  
>  >  Then I try commands in the first one, and, when they work (which
>  >  isn't very often), I cut the command with C-w, switich to the
>  >  other viewport, and yank it into myfile.R with C-y.  This takes
>  >  very few keystrokes and does not require the mouse.  Then
>  >  myfile.R has something I can re-run (about 1/10 the size of
>  >  .Rhistory).
>  >  
>  >  It seems that you can't do this in Xemacs.  In particular, the
>  >  kill buffer is not common to the various Xemacs processes that
>  >  are running, unlike Emacs.
>  >  
>  >  I tried running the R process and myfile.R as bufffers in one
>  >  Xemacs process, and this worked OK until I also tried help.  Then
>  >  I had three buffers, and it took many many keystrokes to switch
>  >  from one to the other.
>  >  
>  >  I know that some people really like Xemacs with R.  Can you give
>  >  any advice?  In the meantime I've gone back to Emacs.  Sigh.
>  >  
>  >  Jon Baron
>  >  -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
>  >  -.-.-.-.-.-.-.-.-.-
>  >  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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._
> 
> 
> LEGAL NOTICE
> Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

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