[R] R script From PHP

2009-12-01 Thread Amrit Nandan
Hi, I have created a web interface to enable analysis for users without having much to worry about the stats in the backend. In this particular case I have reached a stage where I have finally created two arrays between which I want to do an independant samples T Test. I have the arrays ready in a

Re: [R] R script From PHP

2009-12-02 Thread Amrit Nandan
I tried calling R from a shell script and it works. This is an example file rscript.sh R --no-save << EOT x<-2*pi print(cbind(x,sin(x))) quit("no") EOT This works perfectly on the Linux machine in which I have logged in via SSH using the command ("./rscript.sh") I tried running this command usin

Re: [R] R script From PHP

2009-12-02 Thread Amrit Nandan
RServe looks exciting but the problem is that I am not sure whether I would be allowed to install anything on the linux server on which I am working. On Wed, Dec 2, 2009 at 3:40 PM, Romain Francois wrote: > On 12/02/2009 10:43 AM, Amrit Nandan wrote: > >> I tried calling R from a

Re: [R] R script From PHP

2009-12-02 Thread Amrit Nandan
. On Wed, Dec 2, 2009 at 3:47 PM, Amrit Nandan wrote: > RServe looks exciting but the problem is that I am not sure whether I would > be allowed to install anything on the linux server on which I am working. > > > On Wed, Dec 2, 2009 at 3:40 PM, Romain Francois < > romain.franc

Re: [R] R script From PHP

2009-12-02 Thread Amrit Nandan
or: /usr/bin ./rscript.sh: line 4: R: command not found This is really wierd. On Wed, Dec 2, 2009 at 3:52 PM, Amrit Nandan wrote: > Also I tried out your method, it returns the same error. Another thing, If > I change the top line in rscript.sh to R --slave it just gives me a neat > outp

Re: [R] R script From PHP

2009-12-02 Thread Amrit Nandan
How do I check whether R bin directory is added to PATH variable or not and if not then how do i add it? On Wed, Dec 2, 2009 at 5:34 PM, Romain Francois wrote: > On 12/02/2009 12:30 PM, Hrishi Mittal wrote: > >> >> >> I agree with Romain that you should probably try and get Rserve to work as >> t