[R] shelling out to R for one command

Paul Meagher paul at email4all.ca
Sat Nov 16 03:19:55 CET 2002


I am developing a PHP script and want to use R to get the probability of a
t-value.

This just requires that I issue one R statement and output the result.

The problem I am having is that R will accept batch input but I am not
sure that it will accept a "one-liner" (i.e., "/usr/local/bin/R qt(.975,
20)"  does not work but you get the idea).

Is there a way to pass R a one-liner without having to put it into a batch
file and submit it to R as a batch job.

Regards,
Paul Meagher




-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list