[R] R on HP-UX, again: modreg.sl fails, 1 arith test fails

Luke Tierney luke at goose.stat.umn.edu
Fri Sep 15 16:05:44 CEST 2000


Thomas Hoffmann wrote:
> With this I could run the make process to completion. Even the tests w/ loading these shared
> libs work, with the exception of modreg.sl. Calling
> 
> > library(modreg)
> 
> results in
> 
> Error in dyn.load(x, as.logical(local), as.logical(now)) : 
>         unable to load shared library "/usr/local/lib/R/library/modreg/libs/modreg.sl":
>   can't open /usr/local/lib/R/library/modreg/libs/modreg.sl
> Error in library(modreg) : .First.lib failed
> 

To track down the shared library problem you could try this: If you
add BIND_VERBOSE to the flags for shl_load then shl_load may print
something useful, like the name of the symbol it can't find.  The call
to shl_load is in src/unix/hpdlfcn.c, but even though this is a .c
file it is used by inclusion in src/unix/dynload.c, so that is the
file that needs to be recompiled.


> Another problem is the failure of the arith test:
> 
> abs(1 - x / asin(sin(x)))
> 
> results in values greater then Meps for x=0.53 and 0.56.
> 

I believe a few of the tests are a bit too stringent.  THere are two I
believe where the check is for Meps but HP-UX gives 2 * Meps (or
something roughly like that).

One other test fails due to the fact that exp(a large number) returns
DBL_MAX on HP-UX (PARISC at least) rather than IEEE Inf (this may be
adjustable by changing the rounding mode, but I've never looked into
that).  The test wants it to be Inf.  If those are your only problems
I think you are OK.  If there are more failures than those then there
may be more issues.

luke

-- 
Luke Tierney
University of Minnesota                      Phone:           612-625-7843
School of Statistics                         Fax:             612-624-8868
313 Ford Hall, 224 Church St. S.E.           email:      luke at stat.umn.edu
Minneapolis, MN 55455 USA                    WWW:  http://www.stat.umn.edu
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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