From tlumley at u.washington.edu  Mon Jul 21 08:21:12 2003
From: tlumley at u.washington.edu (Thomas Lumley)
Date: Mon Jul 21 16:22:19 2003
Subject: [Rd] calling R from C
In-Reply-To: <D15343265276D31197BC00A024A6C11077412A@EXS_BDC>
Message-ID: <Pine.A41.4.44.0307210715020.88596-100000@homer03.u.washington.edu>

On Mon, 21 Jul 2003, Khamenia, Valery wrote:

> Hi All,
>
>   We'd like to use functions provided in R in our application.
>   Our application is written in C/C++ and currently runs on
>   win32, Linux and Mac. We'd be happy to attach the whole
>   R ( i.e. not just transfer some function by hand).
>   It is important that we deal with big amount of data, so
>   "command line"-like invocations won't be very interesting.
>   We'd like to link R's code statically or dynamically.
>

You can compile R as a shared library, which allows you to construct and
evaluate R expressions from C.

There's a recent thread on r-devel with a bit more information:
http://maths.newcastle.edu.au/~rking/R/devel/03b/0073.html


	-thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle


[Rd] calling R from C
Thomas Lumley