[R] Help with DLLs

Jane L. Harvill harvill at math.msstate.edu
Fri Oct 18 02:22:28 CEST 2002

I'm using R version 1.5.1, and Microsoft Developer Studio 97 (yes, I know
it's old, but it's expensive to upgrade) on Windows 98.  I created the DLL
file with the compiler.  The name of the file containing the subroutine is
leaf.f and the subroutine is named leaf.f. In my R program (which defines
a function called leaf), I have 
	x <- .Fortran("leaf",...)  
where the ... are the arguments passed.  I source("leaf.s"), and then
dyn.load("leaf.dll"), and when I run leaf(100), I get the following error

Error in .Fortran("leaf",as.integer(nn),as.double(u),as.double(A), :
         C/Fortran function name not in load table

Does anyone know what is causing this error message and how to fix the
Incidentally, the same code works FINE on the Unix version of R, but I was
hoping to transfer it to my PC so that I could use it in a presentation
without having to rely on an unreliable internet connection.

Any words of wisdom are greatly appreciated.

Jane Harvill

Dr. Jane L. Harvill, Ph.D.
Department of Mathematics and Statistics
Drawer MA
Mississippi State, Mississippi 39762
Phone: (662) 325-3414
FAX:   (662) 325-0005
URL:   http://www2.msstate.edu/~harvill/

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