[R] simple example of C interface to R

jbdunsmo@utmb.edu jbdunsmo at utmb.edu
Wed Feb 9 23:50:13 CET 2005


On Tue, Feb 08, 2005 at 10:16:42PM +0000, Prof Brian Ripley wrote:
> On Tue, 8 Feb 2005 jbdunsmo at utmb.edu 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 directory of the R 2.0 source, build the
whole R package using make, update my version of R to 2.0, edit the
Makefile in the tests/Embedded directory:

change
	LIBR = -L`cd $(top_builddir) && $(GETWD)`/bin -lR
to
	LIBR = -L`R RHOME`/lib -lR
	
set LD_LIBRARY_PATH:

	export LD_LIBRARY_PATH="/usr/lib/R/lib"

and then execute make in the tests/Embedded directory.




More information about the R-help mailing list