search for: typeordi

Displaying 1 result from an estimated 1 matches for "typeordi".

2005 Oct 31
1
R-functions in C-Code
.... Unfortunately, my shared library with the C-code works only in cases where I use R-routines that are defined Rmath.h, eg. ************************************* less test.c: #include <R.h> #include <Rinternals.h> #include <Rmath.h> void test(int *nrows, SEXP init,SEXP fac1, SEXP typeordi, SEXP bgratio) { double sum = dnorm(1.0/1, 0, 1, 0); } Compiling and building shared library: gcc -I/usr/lib64/R/include -fPIC -O2 -c test.o test.c gcc -shared -L/usr/local/lib -o test.so test.o -L/usr/lib64/R/lib -lR Calling R and loading test.so works fine: >dyn.load("te...