[R] One package calling C-code from another package.

Ole Christensen o.christensen at lancaster.ac.uk
Fri Nov 9 19:40:53 CET 2001

Dear R people

We have two packages, where the first package (geoR) is required by the
second (geoRglmm). 
Both packages have functions calling  C-code via .C().

We would like to call C-functions included in the first package 
from within the C-code in the second package.
Is this possible?

An appropriate header file was included in the src directory of the
second package but this alone did not solve the problem, probably 
because we have to link things properly when compiling the second

We've browse the "Writing R extensions" manual and tried to use
"Makevars" but we did not succeed/got it right.

Any ideas?

Thanks in advance for any help
 Ole Christensen / Paulo Ribeiro

> version
platform i686-pc-linux-gnu
arch     i686             
os       linux-gnu        
system   i686, linux-gnu  
major    1                
minor    3.1              
year     2001             
month    08               
day      31               
language R                

Ole F. Christensen
Department of Mathematics and Statistics
Fylde College, Lancaster University 
Lancaster, LA1 4YF, England
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list