fn try_from_sexp_numeric_vec<T>(sexp: SEXP) -> Result<Vec<T>, SexpError>Expand description
Convert numeric/logical/raw vectors to Vec<T> with element-wise coercion.
An R NA is an error at its index, whichever storage carries it: NA_integer_
and a logical NA are caught here (the i32::MIN sentinel would otherwise
coerce to a finite number), and NA_real_, which an integer target refuses
as a NaN, is reported as NA by coerce_real_value. Bind
Vec<Option<T>> (see na_vectors) when the caller can pass NA. Per-element
failures batch into one diagnostic, by reason and 1-based position.