[Rd] Mods that allow R scripts

Neil McKay MD mckay@suna.gmr.com
Thu, 11 Apr 2 10:40:27 EDT


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");

The mods required to enable this aren't particularly major.
(Adds about 70 lines of code, IIRC.) Anyone else interested
in adding this to the R core?

-- 
Neil D. McKay, Mail Code 480-106-359    Phone: (586)986-1470 (GM:8-226-1470)
Enterprise Systems Lab                  FAX:   (586)986-0574 (GM:8-226-0574)
GM Research & Development Center        Internet: mckay@gmr.com
30500 Mound Road
Warren, Mich. 48090

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._