Skip to main content

try_from_sexp_coerced_option_bool_vec

Function try_from_sexp_coerced_option_bool_vec 

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

Convert a coerce Vec<Option<bool>> parameter.

A logical vector takes the bare conversion. An integer vector reads NA_integer_ as None and 0 / 1 as booleans; every other element is an error, all of them reported in one diagnostic by reason and position.