Module extendr_api::prelude

source ·
Expand description

Common exports for extendr-api.

This allows us to be more selective about exports and avoid users using deprecated features.

Re-exports

Macros

  • Execute R code by parsing and evaluating tokens.
  • Execute R code by parsing and evaluating tokens but without expanding parameters.
  • Call a function or primitive defined by a text expression with arbitrary parameters. This currently works by parsing and evaluating the string in R, but will probably acquire some shortcuts for simple expessions, for example by caching symbols and constant values.
  • Create a dataframe.
  • Define a module and export symbols to R Example:
  • Create a factor.
  • Get a global variable.
  • A macro for constructing R langage objects.
  • Create a List R object from a list of name-value pairs.
  • Create a Pairlist R object from a list of name-value pairs.
  • Convert a rust expression to an R object.
  • Print via the R error stream.
  • Print with a newline via the R output stream.
  • Print via the R output stream.
  • Print with a newline via the R output stream.
  • The sym! macro install symbols. You should cache your symbols in variables as generating them is costly.
  • Macro for running tests.
  • Get a local variable from the calling function or a global variable if no such variable exists.

Traits

  • Trait used for incomming parameter conversion.
  • Used for indexing operations (container[index]) in immutable contexts.
  • The following impls add operators to Robj.
  • The following impls wrap specific Rinternals.h functions.
  • Extensions to iterators for R objects including RobjItertools::collect_robj().
  • Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.
  • An attempted conversion that consumes self, which may or may not be expensive.

Attribute Macros

Derive Macros

  • Enable the construction of dataframes from arrays of structures.