Hello,
I am having the same problem. My webmaster is not ready to install R on the
web server.
Is there a way to run R on a remote linux cluster and POST results from the
remote server to my website?
I am sorry if this is more of a PHP question.
Thank you and Any help appreciated.
S
--
View
Hello,
You might like the php client to Rserve that is part of the next version
of Rserve. see http://www.rforge.net/Rserve/svn.html
install the last snapshot, and check the client/php/simple.php file
If you decide to go this way, then I'd suggest you use the
stats-rosuda-devel mailing
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 using php
On 12/02/2009 10:43 AM, Amrit Nandan wrote:
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
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...@dbmail.comwrote:
On 12/02/2009 10:43 AM, Amrit Nandan wrote:
I tried calling R
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
output. I am not sure why running the shell script directly from within the
same folder is working where as from php it is not recognising R command.
Some more development: I found the directory of R in the Root
It is
/usr/bin/R
I did a ls -l R and got this output
-rwxr-xr-x 1 root root 6642 Jan 9 2006 R (This looks like in CHMOD 755
already)
So I modified my shell script
#!/bin/sh
cd /usr/bin/
pwd
R --slave EOF
x-2*pi
I agree with Romain that you should probably try and get Rserve to work as
that is a much better way. However, to get your commandline version working,
I suggest you use the Rscript comman instead of a bash script. So let's say
you save your R script as a myscript.R file. Then do:
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
that is a much better way. However, to get your commandline version working,
I suggest you use the Rscript comman instead of a bash script. So let's say
you save your R
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
romain.franc...@dbmail.comwrote:
On 12/02/2009 12:30 PM, Hrishi Mittal wrote:
I agree with Romain that you should probably try and get
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
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
Amrit Nandan amrit.nan...@gmail.com 01-Dec-09 08:27:
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
Hi Amrit,
I believe you can you use the PHP system command to call Rscript or R CMD. I
don't know much PHP but this page might be useful -
http://php.net/manual/en/function.system.php.
You might also want to look at rapache -
http://biostat.mc.vanderbilt.edu/rapache/
Good luck with your
On 12/01/2009 12:48 PM, Hrishi Mittal wrote:
Hi Amrit,
I believe you can you use the PHP system command to call Rscript or R CMD. I
don't know much PHP but this page might be useful -
http://php.net/manual/en/function.system.php.
You might also want to look at rapache -
15 matches
Mail list logo