Skip to main content

try_from_sexp_coerced_i32_vec

Function try_from_sexp_coerced_i32_vec 

Source
#[doc(hidden)]
pub fn try_from_sexp_coerced_i32_vec(sexp: SEXP) -> Result<Vec<i32>, SexpError>
Expand description

Convert a coerce Vec<i32> parameter.

INTSXP takes the bare conversion. Whole-valued doubles, logicals, and raws widen element-wise with indexed, batched diagnostics. NA_real_ and a logical NA become NA_integer_ (the vector can carry NA, unlike the scalar); any other NaN, fractional, or out-of-range double is an error.