Skip to content

emacs and R

6 messages · John Sorkin, Louise Hoffman, Gavin Simpson +3 more

#
At the suggestion of many people, I have installed emacs on my linux (Fedora 8.0) computer with the intention of using emacs as window interface to R (2.6.0). I have gone though the emacs tutorial and don't see any information about how I should use emacs to run R. Can anyone suggest a document that I might read? In the past I have used R on a Windows XP system and used the built-in windowing interface.
Thank you,
John

John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medical Center GRECC,
University of Maryland School of Medicine Claude D. Pepper OAIC,
University of Maryland Clinical Nutrition Research Unit, and
Baltimore VA Center Stroke of Excellence

University of Maryland School of Medicine
Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524

(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing)
jsorkin at grecc.umaryland.edu
Confidentiality Statement:
This email message, including any attachments, is for th...{{dropped:6}}
#
Download Emacs Speak Statistics which is a LISP package for emacs.
http://ess.r-project.org/

When installed you can e.g.

M-x R         Start an R process in Emacs
%
C-c C-c       Sends a Control-C signal to the ESS process.
              This has the effect of aborting the current command.
%
C-c M-b       Send the contents of the edit buffer to the ESS process
              and returns you to the ESS process buffer as well.
%
C-c M-r       Send the text between point and mark to the ESS process and
              returns to the ESS process buffer afterwards.
%
C-c M-j       Send the line containing point to the ESS process, and
              return to the ESS process buffer.
%
C-c C-n       Sends the current line to the ESS process,
              echoing it in the process buffer, and moves point to the
next line.
%
C-M-q         Indents each line in the expression.
%
M-;           Indents an existing comment line appropriately, or inserts
              an appropriate comment marker.
#
On Sun, 2008-03-02 at 21:45 +0100, Louise Hoffman wrote:
On a Fedora 8 box, one can install ess from exiting Fedora package
repositories.

yum install emacs-ess

as root in a terminal (or use Pirut via Applications Menu > Add/Remove
software) to install ESS.

Then follow Louise's crib sheet to start R within Emacs etc.

There is nothing wrong with installing from the tar ball at the ess
homepage, but with the availability of a Fedora package I keep ESS more
up-to-date than I ever did when I had to manually "upgrade".

G
#
Louise Hoffman wrote:
It's easier still (on F8):

yum install emacs-ess

and you may also notice the user-friendly menus supplementing the key 
combinations below. These appear automagically if you are in an R 
interaction buffer, or a .R or .Rout file.

    -p

  
    
#
John Sorkin <jsorkin <at> grecc.umaryland.edu> writes:
I would suggest the ess manual itself: 

http://stat.ethz.ch/ESS/ess.pdf

and John Fox's document: 

http://socserv.mcmaster.ca/jfox/Books/Companion/ESS/ess-xemacs.pdf.  

Even though the latter deals with Xemacs on windows, it does has useful info 
about using (X)emacs + ess in general.

Michael Bibo
Queensland Health
#
Hi, John,
you don't have to switch to linux in order to use ess + emacs with R.
just follow the installation instruction of ess and it will take you 5
minutes at most. i also feel that xemacs seems more friendly than
gnuemacs for windows user.
On Sun, Mar 2, 2008 at 3:40 PM, John Sorkin <jsorkin at grecc.umaryland.edu> wrote: