Hacker News new | ask | show | jobs
by acomjean 2330 days ago
We’d love to call R from php or python. Incredibly good stats. We use the Rscript (To run r from command line) to generate graphs for the webs but to call directly would be nice.

We tried extracting some of the phyper code into a stand alone application, but not trivial.

2 comments

Rpy2 should work, no? And reticulate is really great for calling python from R https://rstudio.github.io/reticulate/index.html
Yes. Reticulate is great for R to Python.

In case you need data handoffs between various processes, you might want to use an intermediate transition via a database, flat file, etc. It helped me get over few problems of passing data around.

I'll check it out. Thanks.