[R] One package calling C-code from another package.
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
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.
Thanks in advance for any help
Ole Christensen / Paulo Ribeiro
system i686, linux-gnu
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