Hi the list,

In a package P1, I write a function f1 in C, potentially an internal function (not to be called from R). In a package P2, I write a function f2 in C. The f2 function needs to use f1 from P1. Is it possible ?

--- 8< ---- In file P1.c ---------
double f1(x,y){
  ....
}

--- 8< ---- In file P2.c ---------
void f2(x,y,z){
  double result;
  ....
  result = f1(x,y);
  ....
}

Thanks
Christophe

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to