Skip to content
@extendr

extendr

Extension libraries for R in Rust

extendr

🚀 Blazingly Fast & User-friendly R extensions using Rust 🦀

extendr brings the performance, safety, and reliability of Rust to R. Write fast and scalable R packages without worrying about R's C API.

Documentation & Resources

Key Repositories

Repository Description
extendr 🦀 extendr's source code
rextendr 📦 Create and manage your Rust-based R packages
awesome-extendr ⭐ Curated list of extendr packages
extendr.github.io 📚 Documentation website source

Community

  • Discord: Join our community discussions 💬 (Discord invite)
  • Issues: Report bugs and request features in individual repositories 🐛
  • Contributions: See CONTRIBUTING.md in each repository 🤝

Core Components

Rust workspace 🦀 with battle-tested crates:

  • extendr-api - ergonomic, opinionated, and safe interface between R and Rust
  • extendr-engine - launch R sessions from Rust
  • extendr-ffi - hand-crafted bindings to R's C-API

R package 📦 for seamless development:

  • rextendr - a {usethis}-like package that scaffolds extendr-powered R packages

Getting Started

Prerequisites

  • R (≥ 4.2)
  • cargo and rustc (≥ 1.65) - install via rustup

Get Started

We recommend using the development version of {rextendr} from GitHub.

# Install from CRAN
install.packages("rextendr")

# Development version
remotes::install_github("extendr/rextendr")

usethis::create_package("helloextendr")
rextendr::use_extendr()
rextendr::document()

hello_world()
#> [1] "Hello, world!"

Pinned Loading

  1. extendr extendr Public

    R extension library for rust designed to be familiar to R users.

    Rust 510 54

  2. rextendr rextendr Public

    An R package that helps scaffolding extendr-enabled packages or compiling Rust code dynamically

    R 254 34

  3. libR-sys libR-sys Public

    Low level R bindgen interface

    Rust 56 25

Repositories

Showing 10 of 21 repositories
  • awesome-extendr Public

    A curated list of extendr-powered, rust-based R-packages

    extendr/awesome-extendr’s past year of commit activity
    R 26 MIT 3 0 0 Updated Apr 5, 2026
  • extendr/extendr.github.io’s past year of commit activity
    Lua 9 MIT 6 32 1 Updated Apr 3, 2026
  • extendr Public

    R extension library for rust designed to be familiar to R users.

    extendr/extendr’s past year of commit activity
    Rust 510 MIT 54 101 (1 issue needs help) 13 Updated Mar 27, 2026
  • arrow-extendr Public

    Integration between arrow-rs and extendr

    extendr/arrow-extendr’s past year of commit activity
    Rust 28 1 0 0 Updated Mar 26, 2026
  • rextendr Public

    An R package that helps scaffolding extendr-enabled packages or compiling Rust code dynamically

    extendr/rextendr’s past year of commit activity
    R 254 34 40 1 Updated Mar 20, 2026
  • b64 Public

    A lightweight and very fast base64 encoder and decoder.

    extendr/b64’s past year of commit activity
    R 22 5 1 0 Updated Mar 4, 2026
  • libR-sys Public

    Low level R bindgen interface

    extendr/libR-sys’s past year of commit activity
    Rust 56 MIT 25 12 4 Updated Feb 24, 2026
  • h3o Public

    Blazing fast Uber H3 gridding in R

    extendr/h3o’s past year of commit activity
    Rust 41 4 1 0 Updated Feb 22, 2026
  • tomledit Public

    Parse, Read, and Edit TOML

    extendr/tomledit’s past year of commit activity
    R 12 2 4 0 Updated Feb 10, 2026
  • b32 Public

    Fast and Vectorized Base32 Encoding

    extendr/b32’s past year of commit activity
    R 4 0 0 0 Updated Jan 19, 2026

Top languages

Loading…

Most used topics

Loading…