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ยง
use std::collections::HashMap;๐use std::iter::IntoIterator;๐use std::ops::Range;๐use std::ops::RangeInclusive;๐use std::os::raw;๐use extendr_ffi::dataptr;๐use extendr_ffi::R_IsNA;๐use extendr_ffi::R_NilValue;๐use extendr_ffi::R_compute_identical;๐use extendr_ffi::R_tryEval;๐use extendr_ffi::Rboolean;๐use extendr_ffi::Rcomplex;๐use extendr_ffi::Rf_getAttrib;๐use extendr_ffi::Rf_setAttrib;๐use extendr_ffi::Rf_xlength;๐use extendr_ffi::COMPLEX;๐use extendr_ffi::INTEGER;๐use extendr_ffi::LOGICAL;๐use extendr_ffi::PRINTNAME;๐use extendr_ffi::RAW;๐use extendr_ffi::REAL;๐use extendr_ffi::SEXPTYPE;๐use extendr_ffi::STRING_ELT;๐use extendr_ffi::STRING_PTR_RO;๐use extendr_ffi::TYPEOF;๐use extendr_ffi::XLENGTH;๐use crate::scalar::Rbool;๐use crate::scalar::Rfloat;๐use crate::scalar::Rint;๐pub use operators::Operators;use prelude::c64;๐use prelude::Rcplx;๐pub use rinternals::Rinternals;use extendr_ffi::SEXPTYPE::*;๐use crate::*;๐pub use iter::*;
Modulesยง
- debug ๐
- into_
robj ๐ - operators ๐
- repeat_
into_ robj - rinternals ๐
- try_
from_ ๐robj - There are various ways an
Robjmay be converted into different typesT.
Macrosยง
Structsยง
- Robj
- Wrapper for an R S-expression pointer (SEXP).
Traitsยง
- AsTyped
Slice - Generic access to typed slices in an Robj.
- Attributes
- Provides access to the attributes of an R object.
- Eval
- GetSexp
- Into
Robj - This is an extension trait to provide a convenience method
into_robj(). - Length
- Robj
Itertools - Extensions to iterators for R objects including RobjItertools::collect_rarray().
- Slices
- ToVector
Value ToVectorValueis a trait that allows many different types to be converted to vectors. It is used as a type parameter tocollect::<Robj>().- Types
Functionsยง
- fixed_
size_ collect - str_
to_ character - Returns an
CHARSXPbased on the provided&str. - vector_
slice ๐ โ - vector_
slice_ ๐ โmut