13-14 July 2023
This paper complements Writing R Extensions, the official guide for writing R packages, for those who are familiar with Rust and want to write a Rust-based R package. An R package named cargo is on CRAN to aid development. It provides complete bindings for all of R's API, but idiomatic Rust functions are also available and often avoid the need to directly call R's API. Examples on R packages on CRAN developed using the cargo package include salso, caviarpd, and fangs.