Crate extendr_macros

Source
Expand description

Macros for generating wrappers for rust functions.

Modulesยง

R ๐Ÿ”’
call ๐Ÿ”’
dataframe ๐Ÿ”’
extendr_conversion ๐Ÿ”’
extendr_function ๐Ÿ”’
extendr_impl ๐Ÿ”’
extendr_module ๐Ÿ”’
extendr_options ๐Ÿ”’
list ๐Ÿ”’
list_struct ๐Ÿ”’
pairlist ๐Ÿ”’
pairs ๐Ÿ”’
Internal module for parsing R-like variadic arguments.
wrappers ๐Ÿ”’
This is responsible for generating the C functions that act as wrappers of the exported Rust functions.

Macrosยง

R
Execute R code by parsing and evaluating tokens.
Rraw
Execute R code by parsing and evaluating tokens but without expanding parameters.
call
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 expressions, for example by caching symbols and constant values.
extendr_module
Define a module and export symbols to R Example:
impl_try_from_robj_tuples
list
Create a List R object from a list of name-value pairs.
pairlist
Create a Pairlist R object from a list of name-value pairs.

Attribute Macrosยง

extendr
The #[extendr]-macro may be placed on three items

Derive Macrosยง

IntoDataFrameRow
Enable the construction of dataframes from arrays of structures.
IntoRobj
Derives an implementation of From<Struct> for Robj and From<&Struct> for Robj on this struct.
TryFromRobj
Derives an implementation of TryFrom<Robj> for Struct and TryFrom<&Robj> for Struct on this struct.