9 releases (5 breaking)

0.8.1 Jul 12, 2025
0.8.0 Apr 7, 2025
0.7.1 Sep 5, 2024
0.7.0 Jun 29, 2024
0.2.0 Feb 21, 2021

#146 in FFI

Download history 80/week @ 2025-10-08 48/week @ 2025-10-15 59/week @ 2025-10-22 56/week @ 2025-10-29 22/week @ 2025-11-05 13/week @ 2025-11-12 22/week @ 2025-11-19 32/week @ 2025-11-26 42/week @ 2025-12-03 8/week @ 2025-12-10 34/week @ 2025-12-17 79/week @ 2025-12-24 26/week @ 2025-12-31 325/week @ 2026-01-07 82/week @ 2026-01-14 62/week @ 2026-01-21

507 downloads per month

MIT license

105KB
2K SLoC

extendr-engine

This crate facilitates embedding an R process together with a standalone binaries. In rust-powered R-packages, the R code calls Rust, and thus there is already an accompanying R process. Instead, this is meant to be used in unit tests, integration test and binaries that are standalone from R code.

This crate does not adhere to the non-API requirements of CRAN.

Using it in R-packages

Within Cargo.toml add extendr-engine under dev-dependencies.

[dev-dependencies]
extendr-engine = "*"

Then, you may use extendr_engine within unit tests, integration tests, and binaries. If extendr-engine is added under [dependencies], then the surrounding R-package will flag a CRAN note about non-API usage.

About

See documentation on doc.rs, or the latest development version on extendr website.

This crate is similar in spirit as {Rinside}, on CRAN.

Dependencies

~75KB