Hi Joe,
Thanks for your follow up note
I don't know of a way to achieve it with pure PHP short of writing your
own C extension to PHP. I had considered that at one point, but have found
it unnecessary since my data is already in Postgres and PL/R lets me do what
I need.
I could use swig
.
The time to execute was 0.0010089874267578 seconds
By subtractive logic, this means the call to R incurs an overhead of
around
3 seconds on a average web server box using the php-apache module.
- Original Message -
From: Zitan Broth
Opps I meant incur a couple of seconds overhead for starting R rather than
file IO.
It would be nice to be able to preload the R interpreter like Joe is doing
with Postgres thereby running it as a daemon .
Z.
- Original Message -
Yeah I agree with what you are saying here for sure.
Hi Joe,
Thanks for your message,
I'm doing something similar using PL/R (an R procedural language handler
extension to Postgres that I wrote) with Postgres, R, and PHP. In
Postgres 7.4 (currently at beta3) or with a back-patched copy of 7.3,
you can preload the R interpreter when the
Hi James,
Thanks for your response :-)
- Original Message -
It is like anything else that you want to run as part of web services:
what
do you want it to do? Yes, it is fast in doing computations, but what
will
you have it do? It is probably as fast as anything else that you will
Greetings All,
Been playing with R and it is very easy to get going with the UI or infile batch
commands :-)
What I am wondering is how scalable and fast R is for running as part of a web
service. I believe R is written in C which is a great start, but what are peoples
general thoughts on
Greetings All,
I just wanted to say, somewhat belatedly, a huge thank you to all those who
answered my question. I hope I have got all of you::
Thanks to Ruud, Jonathan, James, Martin, Andrew and Dennis.
Basically the solution and noted by these helpful people is to use infile
thereby creating
Greetings All,
Just a quick query about calling R. Looking through the manual you start R
with $ R, and then start calling R functions e.g plot whatever. Sounds
pretty funky, and R looks to be *the* open source maths package. Awesome
... I would like to call R from my favourite glue language