Here I have this code:
__________
#include"outils.h" // 'outils.cpp' is the place where the function CompGen()
is
#include "interface.h"
#include <stdlib.h>
using namespace Rcpp ;
RcppExport SEXP CreerObjetGen(SEXP SInd,SEXP SPere, SEXP SMere, SEXP SSexe)
{
??? STARTTIMER;
??? NumericVector xSInd(SInd),? xSPere(SPere),? xSMere(SMere),
xSSexe(SSexe);
??? Fast<NumericVector> fSIndividu(xSIndividu), fSPere(xSPere),
fSMere(xSMere) , fSSexe(xSSexe);
?....
??? CompGen(fSInd,fSPere,fSMere,fSSexe,fInd,fpere,fmere,fsexe,&lNIndividu);
//? the 2nd function I called...
__________
I used to have this before I had to change them to types provided by Rccp
(NumericVector):
?int* plIndividu??? =INTEGER_POINTER(AS_INTEGER(SIndividu));
??? int* plPere??? ??? =INTEGER_POINTER(AS_INTEGER(SPere));
? etc...
I've also read the last post on the list... is it because I can't send
pointers through a function?
thanks for the help,
H?lo?se
--
H?lo?se Gauvin
PhD student, Epidemiology