[R] PHP and R

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Jan 11 11:26:38 CET 2009


On Sun, 11 Jan 2009, Applejus wrote:

> I know that using PHP command exec(...) you can call a unix command that
> would run an R script, but how does it work on Windows platform?

Exactly the same way.

> Basically, I have an R function which takes a file and two strings as
> arguments and I need to call this function and pass to it the arguments
> automatically from PHP (when the user hits a submit button on the webpage),
> any ideas??

See Rscript[.exe], which I gave an example of only this morning.

It is documented in 'An Introduction to R', amongst other places.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list