Module robj

Source
Expand description

R object handling.

See. Writing R Extensions

Fundamental principals:

  • Any function that can break the protection mechanism is unsafe.
  • Users should be able to do almost everything without using libR_sys.
  • The interface should be friendly to R users without Rust experience.

Re-exportsยง

pub use iter::*;

Modulesยง

debug ๐Ÿ”’
into_robj ๐Ÿ”’
operators ๐Ÿ”’
rinternals ๐Ÿ”’
try_from_robj ๐Ÿ”’
There are various ways an Robj may be converted into different types T.

Macrosยง

make_typed_slice ๐Ÿ”’

Structsยง

Robj
Wrapper for an R S-expression pointer (SEXP).

Traitsยง

AsTypedSlice
Generic access to typed slices in an Robj.
Attributes
Provides access to the attributes of an R object.
Eval
GetSexp
IntoRobj
This is an extension trait to provide a convenience method into_robj().
Length
Operators
The following impls add operators to Robj.
Rinternals
The following impls wrap specific Rinternals.h functions.
RobjItertools
Extensions to iterators for R objects including RobjItertools::collect_robj().
Slices
ToVectorValue
ToVectorValue is a trait that allows many different types to be converted to vectors. It is used as a type parameter to collect_robj().
Types