Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.A41.4.44.0307210715020.88596-100000@homer03.u.washington.edu>
Date: 2003-07-21T16:22:19Z
From: Thomas Lumley
Subject: calling R from C
In-Reply-To: <D15343265276D31197BC00A024A6C11077412A@EXS_BDC>

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