Skip to content
Prev 106148 / 398506 Next

How to avoid test for NAs in foreign function call

Supply NAOK=TRUE argument to .C; the help page for .C() contains the 
following:

Usage
                 .C(name, ..., NAOK = FALSE, DUP = TRUE, PACKAGE)

Also, you might want to consider using the "raw" data type instead of 
integers -- that way you should have fewer problems with R code making 
unwanted interpretations of certain bit patterns.

-- Tony Plate
Knut M. Wittkowski wrote: