-
-
Notifications
You must be signed in to change notification settings - Fork 221
Closed
Description
From Murray:
A vector of 64-bit integers in C++ code should be either returned as
-
An integer vector (if all values are < INT_MAX in the C code) corresponding to R's integer type.
-
A numeric vector (if all values are < 1L << 53 such that they can be stored precisely in a double without losing any digits of precision) corresponding to R's numeric type.
-
A vector of strings (if at least 1 value > 1L << 53 such that returning a numeric would lose precision in the result. e.g. 64-bit fingerprints, userids, network addresses or other things can not be stored in a numeric accurately.
Sorry no patch, I work around this in my application code currently before calling Rcpp::wrap().