[R] simple example of C interface to R

2005-02-04 Thread jbdunsmo
i'd like to use the C interface to R in a program i'm writing. as a starting point, i'm trying to create a very simple C program that uses R. i've read the R documentation on this, but i'm having trouble figuring out where SEXP is defined and how to use it. i noticed someone else on this list al

Re: [R] simple example of C interface to R

2005-02-04 Thread jbdunsmo
On Fri, Feb 04, 2005 at 09:09:37PM +0100, Roger Bivand wrote: > > Well, it is documented in the Writing R Extensions manual: > > http://cran.r-project.org/doc/manuals/R-exts.html#System-and-foreign-language-interfaces > thanks. reading through that a second time made all the difference. i still

Re: [R] simple example of C interface to R

2005-02-08 Thread jbdunsmo
On Tue, Feb 08, 2005 at 10:55:01AM +0100, Rau, Roland wrote: > > do you know already the page of Roger D. Peng? > He has a document entitled "An Introduction to the .C Interface to R". > It is located at: > http://www.biostat.jhsph.edu/~rpeng/docs/interface.pdf > thanks. that's a nice tutorial,

Re: [R] simple example of C interface to R

2005-02-08 Thread jbdunsmo
thanks for all the help. i've tried everyone's suggestions, to no avail... On Tue, Feb 08, 2005 at 04:19:10PM -0500, Huntsinger, Reid wrote: > Rtest.o is just an object file, and the second call to gcc is really a call > to ld and creates Rtest.so, a shared library. Neither is executable. > Proba

Re: [R] simple example of C interface to R

2005-02-09 Thread jbdunsmo
On Tue, Feb 08, 2005 at 10:16:42PM +, Prof Brian Ripley wrote: > On Tue, 8 Feb 2005 [EMAIL PROTECTED] wrote: > > >thanks for all the help. i've tried everyone's suggestions, to no > >avail... > i finally figured it out. i needed to do the following: use the configure script in the base dir