fn rvector_to_arrow_array( vec: &Vector, len: usize, ) -> Result<Arc<dyn Array>, RError>
Convert an R vector to an Arrow ArrayRef for writing.