To run ESS, open an emacs window and open a file ending with .r, .s,
or .q.
If the grey line near the bottom does not show (ESS), then you haven't
loaded it up yet. Emacs will do this for you automatically if you have
the line
(require 'ess-site)in your .emacs file
cp ~jimrc/.emacs .You can open an R session by typing Meta-X R. Then select "New Frame" in the File menu to open a new window, and select the buffer needed under the "Buffer" menu. I like to have one window for the R session and another for a file where I save the commands that worked and any output I might need later.
I use a myRfile.r window to store a record of things that worked in the stat package, both commands and output. Commands are typed into the *R* window. If they work I copy them and any interesting output to the file.r window to be saved.
I also find the search capabilites useful. To rerun a command that included lm(y~x), just push C-c C-r and the first few letters of lm(y~x). Push return, and the latest command using lm(y~x) will reappear. If you just want to correct and rerun the last command, Alt-P will bring it back.
Other Stat package demos for unix packages:
Back to MSU Math Department Home Page