Skip to main content

Module into_r_error

Module into_r_error 

Source
Expand description

Error types for fallible IntoR conversions.

IntoRError is returned by try_into_sexp when conversion fails (e.g., string exceeds R’s i32 length limit, or fields of a tuple fail).

Re-exports§

use crate::RValue; 🔒
use crate::condition::ConditionCall; 🔒
use crate::condition::ConditionData; 🔒
use crate::condition::ErrParts; 🔒
use crate::condition::RConditionData; 🔒
use crate::from_r::BatchedErrors; 🔒

Structs§

ElementFailures 🔒
The failures of a container’s elements, folded into one IntoRError::Elements.
FailedElement
One failing element of a FailedElements: its position and the parts of its condition.
FailedElements
The elements of a container whose conversion to R failed (a tuple’s fields, the rows of a Vec of tuples, the elements of an AsJsonVec): the batched message, the class they share and each failing element’s own condition with its position.

Enums§

IntoRError
Error returned by IntoR::try_into_sexp for types whose conversion to R can fail.

Functions§

index_rvalue 🔒
A position path as R numbers it: an integer vector, or a double vector for a position past R’s integer range (a row of a long list).