[R] The old Fortran underscore problem
Frank E Harrell Jr
feh3k at cms.mail.virginia.edu
Wed Jun 6 18:28:40 CEST 2001
I have dealt with this on so many platforms in
the past that I should know the answer by now.
I looked in V&R S Programming, R manuals and FAQ
and still can't find the answer.
In the Hmisc library I used the R scripts to build
the package, which creates Hmisc.so. I have
library.dynam('Hmisc', ...) in the .First.lib.
When doing library(Hmisc) I get
Error in dyn.load .... undefined symbol rank_
Note that I do not call dyn.load myself.
The Hmisc library has a Fortran module named
rcorr.f which issues CALL rank(....).
rank is an entry point in a C source file ranksort.c,
declared using "void rank(. .. .)".
All source files seemed to compile fine.
How do I call the C rank entry from Fortran using
Hmisc.so?
A second problem is that in the Design library I
have Fortran code such as
CALL dqrsl1(.....)
When doing library(Design) I get an unknown symbol
dqrsl1_. I know that R base has LINPACK routines such
as dqrsl1.
I think I understand from V&R how to load correct
symbols and look in the correct package when using
an individual dyn.load but not one using a central
library.dynam("packagename", options passed to .First.lib).
Any help will be greatly appreciated.
Thanks -Frank
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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