Skip to content

If you use R from the Terminal ...

4 messages · Jan de Leeuw, elijah wright, Byron Ellis +1 more

#
as I do, it  makes sense to set in your Rprofile.site

        options(editor="/usr/bin/open")

otherwise file.show() and file.edit() will open files in vi.
Yes, I said vi.

===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software
US mail: 8130 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw@stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
   
------------------------------------------------------------------------ 
-------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au
#
from the POV of a "traditional unix user", this is 100% expected behavior.

folks are probably better off learning enough of the vi commandset to
cope, rather than using workarounds... it pays off in the long run.

--elijah
#
On Jun 6, 2004, at 10:47 AM, elijah wright wrote:

            
Actually, no. The expected UNIX behavior is to open whatever editor you 
tell it to open. Claiming that people should 'cope' with vi is missing 
the point (and besides, the default editor is totally arbitrary. Linux 
happens to use 'vi' most everywhere, but a different UNIX could dump 
you out into 'ed' just as easily. There's no inherent advantage to 
knowing 'vi' except the prevalence of Linux systems).

---
Byron Ellis (bellis@hsph.harvard.edu)
"Oook" -- The Librarian
#
Emacs users may find it better to set that as the default.
I do use ess, but also from time to time, I run R from the
command line because I want it to start quickly to do
something simple.

John Maindonald.
On 7 Jun 2004, at 12:47 AM, elijah wright wrote:

            
John Maindonald             email: john.maindonald@anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Bioinformation Science, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.