[Rd] Mods that allow R scripts
David Brahm
brahm@alum.mit.edu
Thu, 11 Apr 2002 12:04:36 -0400
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._