[Rd] Mods that allow R scripts
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 (email@example.com)
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: firstname.lastname@example.org