[Rd] Portability of a C function

Christophe Genolini cgenolin at u-paris10.fr
Sun Feb 14 12:58:31 CET 2010

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);


More information about the R-devel mailing list