[R] s_copy

Prof Brian D Ripley ripley at stats.ox.ac.uk
Tue Aug 24 08:48:50 CEST 1999

On Mon, 23 Aug 1999, Roger Koenker wrote:

> I'm trying to port some routines from S to R.  The code includes some
> fortran stuff that calls lapack.  In the past in similar situations, but
> without any lapack calls, I've had success using simply, as in the 
> V&R R-complements,
>         R SHLIB -o rq.so *.f
> then in R
>         dyn.load("rq.so")
> But now when the code is called from R, R crashes and I get a message
>         undefined symbol:  s_copy 
> This reference is evidently resolved in the Splus linking, but I vaguely
> recall problems like this in ancient versions of Splus.
> I'm running V63.2 of R for i586/linux.
> If someone could provide some diagnosis, or suggestions for further testing,
> I would be most grateful.

I had exactly that (and two others) on early versions of the mclust port.
If I recall correctly, it means you need to load in more of LAPACK,
as I believe s_copy is a LAPACK utility routine: it is certainly
in the S executable to link against.

If you use 0.65.0 (due for release on Friday) it will tell you at
dyn.load time about missing symbols. I do recommend an upgrade.

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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