Skip to main content

checked_vec_try_from_sexp_numeric

Function checked_vec_try_from_sexp_numeric 

Source
fn checked_vec_try_from_sexp_numeric<T>(sexp: SEXP) -> Result<Vec<T>, SexpError>
where i32: TryCoerce<T>, f64: TryCoerce<T>, <i32 as TryCoerce<T>>::Error: Display, <f64 as TryCoerce<T>>::Error: Display,
Expand description

Generic strict vector conversion: only INTSXP and REALSXP allowed; an NA element is an error, like any other element that does not convert.