Skip to content
Back to formatted view

Raw Message

Message-ID: <40296620.6090204@joeconway.com>
Date: 2004-02-10T23:15:44Z
From: Joe Conway
Subject: Invoking R from PHP/Mysql environment
In-Reply-To: <OF60867B45.65B25A8C-ON87256E36.006F2CAF@inel.gov>

VERSRJ at inel.gov wrote:
> We have a setup in which we use PHP (with Geeklog as a CMS) as a
> front end to MySQL. We plan to use R for offering user driven and
> automated statistical analysis of some of the data we obtain. We'll
> be using the R interface to the MySQL database from omegahat
> (www.omegahat.org) for getting the data out of the database, but we
> were wondering if somebody tackled the problem of how to integrate R
> nicely with PHP.

If you can use Postgres instead of MySQL, see:
   http://www.joeconway.com/oscon-pres-2003-1.pdf
Page 23 has an example PHP code snippet. Very simple because most of the 
work is done in the PL/R function.

Joe