#packages #wrapper #extension #framework #overhead #develop #integration

roxido

A framework is provided to transparently develop R packages using Rust with minimal overhead, and more wrappers are easily added

3 unstable releases

0.5.0 Jun 29, 2022
0.4.2 Sep 2, 2021
0.4.1 Sep 1, 2021

#1306 in Development tools

MIT/Apache

275KB
10K SLoC

The Cargo Framework

The paper Writing R Extensions in Rust complements Writing R Extensions (the official guide for writing R extensions) for those interested in developing R packages using Rust. It highlights idiosyncrasies of R and Rust that must be addressed by any integration and describes how to develop Rust-based packages which comply with the CRAN Repository Policy. The paper introduces the cargo framework, a transparent Rust-based API which wraps commonly-used parts of R's API with minimal overhead and allows a programmer to easily add additional wrappers.

Citation

To cite in publications, please use

David B. Dahl (2021), Writing R Extensions in Rust, arXiv:2108.07179 [cs.PL], URL https://arxiv.org/abs/2108.07179.

A BibTeX entry for LaTeX users is

  @Misc{,
    title = {Writing R Extensions in Rust},
    author = {David B. Dahl},
    year = {2021},
    eprint = {2108.07179},
    archiveprefix = {arXiv},
    primaryclass = {cs.PL},
  }

Dependencies

~1.5MB
~33K SLoC