next_inactive up previous


R on stat network

helpdesk@stat.rice.edu

Where is R ?

R is installed under helpdesk. Its full path is /home/helpdesk/bin/R. You can add /home/helpdesk/bin to your $PATH by

setenv PATH $PATH:/home/helpdesk/bin
if you are using csh or tcsh.

Note: R can not be started on stat.rice.edu. Anyway, I would not expect anyone to run R on the mail server.

How to use R ?

The best way to use R is through Emacs/ESS. To make use of ESS, you need to add the following line to your .emacs file

(load "/home/helpdesk/trial/ess/ess-site")
After you start emacs, use command M-x R to start R. (Use M-x S to start S-Plus.)

With the help of ESS, emacs can recognize and color R/S-Plus source files (files with extension .r .s .css). There are also some commands that you can use to interact with the R process. http://www.stat.rice.edu/~helpdesk/dotfiles/.emacs demonstrates how to map these commands to keys like F9, F10 etc.

Details can be found at the ESS howto page.

R for windows?

R is ported to windows. You can find the installation file on http://www.r-project.org. The installation is straightforward but you need to download and install additional packages if you need them. It is possible to install the windows version of Emacs and ESS but the configuration is a little bit tricky. A outline of steps is:

  1. Download and install Emacs and R
  2. Download ESS and decompress.
  3. set $HOME and
  4. add the path of R-term to $PATH from control panel.
  5. change ess-site.el and optionally compile it with emacs command.
  6. put an .emacs file under $HOME.







helpdesk

$Date: 2003/07/17 02:49:21 $

About this document ...

R on stat network

This document was generated using the LaTeX2HTML translator Version 2002-1 (1.68)

Copyright © 1993, 1994, 1995, 1996, Nikos Drakos, Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999, Ross Moore, Mathematics Department, Macquarie University, Sydney.

The command line arguments were:
latex2html -local_icons -no_subdir -split 0 R.tex

The translation was initiated by Statistics Helpdesk on 2003-07-16


next_inactive up previous
Statistics Helpdesk 2003-07-16