pub(crate) fn map_vecsxp_batched<U>(
sexp: SEXP,
read: impl FnMut(SEXP) -> Result<U, SexpError>,
) -> Result<Vec<U>, SexpError>Expand description
Read a list (VECSXP) element by element with read, which gets each
element’s SEXP, and report every element that fails in one error
(ElementErrors), its position numbered as R counts it. Anything but a
VECSXP is a type error, and no element is read.