[RkWard-devel] New version of R

Pierre ECOCHARD pierre.ecochard at gmail.com
Sun Oct 10 13:40:30 UTC 2004


In Arith.h, on my computer, I only have:

int R_IsNA(double);		/* True for R's NA only */
int R_IsNaN(double);		/* True for special NaN, *not* for NA */
int R_finite(double);		/* True if none of NA, NaN, +/-Inf */

I see on the net that previous versions have a R_IsNaNorNA(double)
function, which seems to have been removed in the new version of R (I
think I apt-geted it a few days ago), making it impossible to compile
RKWard:

rembedinternal.cpp:216: error: `R_IsNaNorNA' undeclared (first use
this function)

Probably we should repace 

if (R_IsNaNorNA (reals[i])) reals[i] = RKGlobals::na_double;

by 

if (R_IsNaN (reals[i]) || R_IsNA (reals[i]) ) reals[i] = RKGlobals::na_double;

line 216 of rembedinternal.cpp (works here). I let you do that Thomas,
'cause I'm not sure whether you're working on that file.




More information about the Rkward-devel mailing list