[Rd] Embedding R in C application
Chad.P.Jenness@wellsfargo.com
Chad.P.Jenness at wellsfargo.com
Fri Jun 24 16:10:21 CEST 2005
I have read this section and it appears to be what I am looking for.
Thanks for all of your help,
Chad Jenness
763-229-0427
-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: Friday, June 24, 2005 9:08 AM
To: Chad.P.Jenness at wellsfargo.com
Cc: murdoch at stats.uwo.ca; r-devel at r-project.org
Subject: Re: [Rd] Embedding R in C application
You need to read the correct part of the manual (and you need a manual
from R >= 2.1.0). You are writing a front-end, so read
* Linking GUIs and other front-ends to R::
as Duncan suggested. Your comments are not at all consistent with what
I wrote there.
On Fri, 24 Jun 2005 Chad.P.Jenness at wellsfargo.com wrote:
> I have done this and it sounded like all that I needed to do is
> #include <R.h> to get access to R functionality. However, I was
> getting compiling errors when attempting to make an R function call
> directly from C, so I did some research, and this is where I saw the
> reference to needing the libR.so. By just including R.h, does this
> provide me with the same R functionality as the references that I saw
> about the libR.so? If so, then I will continue to use this to access
> the R functionality and use the "Writing R Extensions" manual.
>
> Thanks,
> Chad Jenness
> 763-229-0427
>
>
> -----Original Message-----
> From: Duncan Murdoch [mailto:murdoch at stats.uwo.ca]
> Sent: Friday, June 24, 2005 8:30 AM
> To: Chad.P.Jenness at wellsfargo.com
> Cc: r-devel at r-project.org
> Subject: Re: [Rd] Embedding R in C application
>
>
> On 6/24/2005 9:18 AM, Chad.P.Jenness at wellsfargo.com wrote:
>> To whom it may concern,
>> I am very interested in embedding the R functionality in our
>> application. This is a C application that currently runs on Win32,
>> but will also run on Linux in the future. From the material that I
>> have seen, I need R compiled as a shared library to evaluate R
>> expressions from C. Is this correct? If so, can I download this
>> shared library
> from
>> somewhere? Is there any API document pertaining to this shared
> library?
>
> You want to look at the "Writing R Extensions" manual, in particular
> the
>
> chapters on the R API (for access to the underlying computational
> routines) and the one on linking GUIs or other front-ends (which
> sounds more like what you want to do).
>
> Duncan Murdoch
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel
mailing list