PHP and R


(Dipika Mukherjee) #1

Hi, I am new to PHP. Please help me with the following question:

Is there any way I can integrate R with PHP in yii framework.

Thanks in advance.


(Wanderson Wbc) #2

Using the php “exec” function


(Dipika Mukherjee) #3

Thank you for your response. Can you please give any example of calling an R function? If I want to call a R function(with parameters) and store the output returned by R in php variable-how can I do that?

Is R-php compatible with yii framework?


(Da:Sourcerer) #4

There are no languag bindings for R in PHP, so you’ve got to invoke the R environment from the shell as Wanderson suggested. See here: http://php.net/manual/en/function.exec.php


(Alexander Makarov) #5