Expand description
Large integer types → REALSXP (f64).
R doesn’t have native 64-bit integers. These types convert to f64 (REALSXP) which may lose precision for values outside the “safe integer” range.
Macros§
- impl_
logical_ 🔒into_ r - Macro for logical IntoR via Rf_ScalarLogical with conversion to i32.
- impl_
option_ 🔒coerce_ into_ r - Macro for
Option<T>whereTcoerces to a type with existing Option impl. - impl_
option_ 🔒smart_ i64_ into_ r - Macro for NA-aware
Option<T> → Rsmart scalar conversion. Checks if value fits i32 → INTSXP with NA_INTEGER for None, otherwise REALSXP with NA_REAL for None.
Functions§
- str_
to_ 🔒charsxp - Helper to convert a string slice to R CHARSXP. Uses UTF-8 encoding. Empty strings return R_BlankString (static, no allocation).
- str_
to_ 🔒 ⚠charsxp_ unchecked - Unchecked version of
str_to_charsxp.