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). The important detail is 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. Any comments and/or links to docs on subj would be highly appreciated. (Especially comments on Mac) Thank you in advance. P.S. If this message appears twice -- I'm sorry (first one was sent in default HTML format) kind regards, Valery A.Khamenya --------------------------------------------------------------------------- Bioinformatics Department BioVisioN AG, Hannover
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. Any comments and/or links to docs on subj would be highly appreciated. (Especially comments on Mac) Thank you in advance. kind regards, Valery A.Khamenya --------------------------------------------------------------------------- Bioinformatics Department BioVisioN AG, Hannover
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
Duncan Temple Lang's article "In Search of C/C++ & Fortran Routines" in R News Vol 1/3, September 2001 is definitely worth reading (even though it's mainly about calling C from R): http://cran.r-project.org/doc/Rnews/Rnews_2001-3.pdf and you should have a look at "Writing R Extensions" : http://cran.r-project.org/doc/manuals/R-exts.pdf James