Call Rust Code from R using the 'extendr' Crate

Provides functions to compile and load Rust code from R, similar to how 'Rcpp' or 'cpp11' allow easy interfacing with C++ code. Also provides helper functions to create R packages that use Rust code. Under the hood, the Rust crate 'extendr' is used to do all the heavy lifting.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.2.0 by Claus O. Wilke, 4 months ago

Report a bug at

Browse source code at

Authors: Claus O. Wilke [aut, cre] , Andy Thomason [aut] , Mossa M. Reimert [aut] , Ilia Kosenkov [aut] , Hiroaki Yutani [aut] , Malcolm Barrett [aut]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports brio, callr, cli, desc, dplyr, glue, pkgbuild, pkgload, purrr, rlang, rprojroot, stringi, tibble, withr

Suggests devtools, knitr, mockr, rmarkdown, rstudioapi, testthat, usethis

System requirements: Rust 'cargo'; the crate 'libR-sys' must compile without error

See at CRAN