Skip to main content

checked_try_from_sexp_numeric_scalar

Function checked_try_from_sexp_numeric_scalar 

Source
fn checked_try_from_sexp_numeric_scalar<T>(sexp: SEXP) -> Result<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 scalar conversion: only INTSXP and REALSXP allowed, of length 1 and not NA.