Re: [R] Error when callin g C-Code

2010-06-15 Thread Romain Francois
This is not the appropriate list for C-level questions. Please study the posting guide and repost on the right list. Also, you might want to also show how you actually call this from R. Are you by any chance using .External instead of .Call ? Romain Le 15/06/10 23:20, Fabian Zäpernick a éc

[R] Error when callin g C-Code

2010-06-15 Thread Fabian Zäpernick
Hi when I call the function below in R, i get the error: Object 'pairlist' can't be converted to 'double'. #include #include #include SEXP CSimPoisson(SEXP lambda, SEXP tgrid, SEXP T2M, SEXP Ni, SEXP NT) { double sign, EVar; double *xlambda, *xtgrid, *xT2M, *xNi, *xNT, *xtau;