Build blazingly fast R packages with Rust
extendr provides developer-first tooling and support for publishing to CRAN.
# setup R package
usethis::create_package("helloextendr")
# add extendr scaffolding
rextendr::use_extendr()
# build and document package
devtools::document()
# load package
devtools::load_all()
# call rust function
hello("world")[1] "Hello world!"Get Started
Learn about extendr, necessary software, and see a complete example.
Rust Basics
Learn the basics of Rust programming with an introduction for R developers.
Developer’s Guide
Learn how to develop an R package that calls Rust code with extendr.
Publishing
Learn how to publish an extendr-based R package to CRAN.