search for: summarisemcmc

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

2010 Oct 08
1
R CMD SHLIB changes function name when compiling
Hi, I'm trying to write a function in C for implementation with .Call. When compiling using R CMD SHLIB characters seem to be added to the function name. Here's the complete C code from the file summariseMCMC.c: #include<R.h> #include<Rdefines.h> #include<Rinternals.h> void summariseMCMC(SEXP data) { PROTECT(data=AS_NUMERIC(data)); UNPROTECT(1); } Then after compiling (R CMD SHLIB summariseMCMC.c) & loading the .dll dyn.load("C:/R/R-2.11.1/bin/summariseMCMC.dl...