[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

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, but

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.