Skip to content
Prev 2606 / 63421 Next

axis() produces junk on DEC alpha (PR#274)

On Mon, 13 Sep 1999 albrecht.gebhardt@uni-klu.ac.at wrote:

            
I've seen the problem on Solaris when make decided to re-configure
and so parts of R got compiled with different compiler options (as under
re-configuration different environmental variables were set). But for me
the problem seems to be getting NaN.
....

I'm puzzled.  Are you saying -Inf passes R_FINITE and passes ISNAN? (Wow!,
if so,) In any case, let us try and fix the macros (which crop up in many
places) not two instances.

There are too many options in Arith.h to guess: can you please tell us
what path is being taken (HAVE_FINITE, IEEE_754, FINITE_BROKEN, ...).

I believe this can all be tested from interpreted R code. I believe you
should get  (is.na(c(2.0, Inf, -Inf, NaN, NA)) etc)
           2.0 Inf -Inf NaN NA
is.na       F   F    F   T   T
is.finite   T   F    F   F   F
is.infinite F   T    T   F   F
is.nan      F   F    F   T   F

(Martin: I can't see this is checked in the tests explicitly. Should we add
it?)  Note though that is.na tests ISNAN and is.nan tests R_IsNaN, but
is.finite does test R_FINITE.