search for: null_entry

Displaying 3 results from an estimated 3 matches for "null_entry".

Did you mean: dll_entry
2009 Jul 14
1
Incorrect comment about ISNA(x) in Arith.h (PR#13826)
...and R transcript that shows that V&R are correct, ISNA(x) is not True for NaN So the last comment should read /* True for NA, not NaN #include "R.h" void mysum(double *x) { double sum = 0.0; sum = x[0] + x[1] + x[2]; if (ISNA(sum)) PROBLEM "sum is NA" WARNING(NULL_ENTRY); if (ISNAN(sum)) PROBLEM "sum is NAN" WARNING(NULL_ENTRY); if (!(R_FINITE(sum))) PROBLEM "sum is not finite" WARNING(NULL_ENTRY); return; } > dyn.load("~/R/work/bug.so") > .C("mysum", c(NaN, 0.0, 0.0), NAOK = TRUE, DUP = FALSE) [[1]] [1...
2000 Feb 29
2
Reading data from file made by C fwrite
Hello! First, I must also congratulate the R core team with their accomplishment! I have gotten to like R a lot, and I have recommended it for inclusion in an "Astronomy for Linux"-distribution which is in use by many professional astronomers and observatories. I'm currently working on importing data from files created by a C program (that I have not written myself, I have the
1999 Oct 27
1
Rdefines.h
...& SPLUS_VERSION >= 4000 # include <newredef.h> #endif #endif static longint *p=NULL; void BT_demo(longint n){ #if defined(S_Plus) if( p != NULL ){ PROBLEM "Possible memory corruption or memory leak.\n We" "advise to restart your S+ session" WARNING(NULL_ENTRY); Free(p); } #endif p = Calloc(n,longint); if (p == NULL){ PROBLEM "Could not allocate memory" ERROR; } printf("Everything fine\n"); Free(p); } =============== Compiled with original Rdefines.h ========== R : Copyright 1999, The R Development Core Team Ver...