[R] writing R shell scripts?

Mike Miller mbmiller at taxa.epi.umn.edu
Tue Nov 8 02:52:18 CET 2005


I'm new to the list.  I've used R and S-PLUS a bit for about 15 years but 
am now working to make R my main program for all numerical and statistical 
computing.  I also use Octave for this kind of work and I recommend it (it 
is also under the GPL).  Here's my question:  In Octave I can write shell 
scripts in the Linux/UNIX environment that begin with a line like this...

#!/usr/local/bin/octave -q

...and the remaining lines are octave commands.  Is it possible to do this 
sort of thing in R using something like this?:

#!/usr/lib/R/bin/R.bin

Well, that isn't quite it because I tried it and it didn't work!

Any advice greatly appreciated.  Thanks in advance.

Mike

-- 
Michael B. Miller, Ph.D.
Assistant Professor
Division of Epidemiology and Community Health
and Institute of Human Genetics
University of Minnesota
http://taxa.epi.umn.edu/~mbmiller/




More information about the R-help mailing list