Skip to content
Prev 22592 / 398502 Next

programming in R

On Mon, Aug 12, 2002 at 05:55:43PM +0200, Alexandra Patriksson wrote:
...
No, but it's easier once your commands get complicated.  Check out the R-WinEdt
if you're on Windows, too.  If you're familiar with emacs, life get a lot easier
with ESS and R.
Sure, for trying things out.  If you want to save what you did, help(savehistory)
will tell you how.
You don't.  R is an interpreted language.  Compilation happens by running
the code through R.

The typical way most people start is with the source() command.  help(source)
will tell you what you need to know.
You need find the directory where R was installed (on Unix and Unix-like
systems, /usr/local/lib/R is the default; under Windows 
c:\Program files\R\rw1051\ is the default for R-1.5.1).  Under this
directory, there is a "doc/manual/" directory, which should contain several
pdf files.  R-intro.pdf, chapter 1, section 10 details how to recall saved functions
from file (created with your favorite editor), and chapter 10 answers the other 
questions that will arise once you start.  It's a very good, readable, comprehensive 
introduction.  

If you want to write packages (custom functions with full documentation, 
possibly with compiled code libraries, etc), the R-exts.pdf document in the
same directory is what you need (start with R-intro.pdf, though).

Cheers

Jason
Message-ID: <20020812190721.A15793@camille.indigoindustrial.co.nz>
In-Reply-To: <1029167743.3d57da7f55fe4@cuculus.its.uu.se>; from Alexandra.Patriksson.8520@student.uu.se on Mon, Aug 12, 2002 at 05:55:43PM +0200