[Rd] pythag missing in src/appl/ROUTINES (PR#544)

Prof Brian Ripley Prof Brian Ripley <ripley@stats.ox.ac.uk>
Mon, 15 May 2000 17:25:00 +0100 (BST)

> From: Roger.Bivand@nhh.no
> Date: Mon, 15 May 2000 16:26:11 +0200 (MET DST)
> To: r-devel@stat.math.ethz.ch
> Subject: [Rd] pythag missing in src/appl/ROUTINES (PR#544)
> CC: R-bugs@biostat.ku.dk
> X-Loop: R-bugs@biostat.ku.dk
> Full_Name: Roger Bivand
> Version: 1.0.1
> OS: Linux RH 6.1
> Submission from: (NULL) (
> I am trying to use pythag() from src/appl in a .Call() function.
> pythag seems to be missing from the ROUTINES list in appl - putting
> it in solved the problem:

But that is not the purpose of that file.  As it says, it is for
internal .C and .Fortran entry points, and its entries get put in the
search table for such entries.  And pythag is not a suitable entry
point (its arguments are not pointers, it returns a value ...).

The real problem seems to be that nothing internal to R calls pythag,
and so pythag.o does not get loaded when R.bin is built.  Thus I don't
know what it is doing in the R source.  The solution is to make one of
the modules in src/main call it via a dummy routine, or just to link it
with your own code.

If we want it in, we should merge pythag.c with something else in 

Brian D. Ripley,                  ripley@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-devel 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-devel-request@stat.math.ethz.ch