From brahm@alum.mit.edu  Thu Apr 11 17:04:36 2002
From: brahm@alum.mit.edu (David Brahm)
Date: Thu, 11 Apr 2002 12:04:36 -0400
Subject: [Rd] Mods that allow R scripts
In-Reply-To: <200204111440.g3BEeRV06920@math.ma.gmr.com>
References: <200204111440.g3BEeRV06920@math.ma.gmr.com>
Message-ID: <15541.46100.236766.419250@gargle.gargle.HOWL>

Neil McKay MD writes:
> I've hacked R so that it can be used to write shell and/or
> CGI scripts, e.g. "hello world" can be written as:
>   #!/usr/local/lib/R/bin/R.bin --script
>   cat("Hello, World!\n");

That is very cool, and would replace about 25 lines of Perl wrapper for me, IF
you could also easily pass flags and arguments, e.g.:
  Unix> myRscript -e -f datafile
These would have to become R variables, somehow.
-- 
                              -- David Brahm (brahm@alum.mit.edu)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Mods that allow R scripts
David Brahm