Forum OpenACS Q&A: PL/R for PostgreSQL
This is similar to but different than Duncan Lang's earier work Embedding R in Postgres. In addition to the Postgres hackers email above, Joe also had this to add about PL/R:
You might say it was inspired by Duncan's work, but not really related/derived from it. He approached the problem from a very "R centric" point of view, and I from a very "PostgreSQL centric" point of view (not surprising given our respective backgrounds). PL/R does however rely on R's ability to be embedded as a shared library, and I believe Duncan was the primary driver of that (based on what I've found browsing around).
set x [nsR log1p 1.5] set x [nsR expml 2] set x [nsR gamma 10]
Btw, what did you do about thread safety? Last I heard I thought R was not thread-safe, but maybe it is now?