User Guide

A comprehensive guide to using extendr

Published

April 7, 2026

This user guide focuses on developing R packages that call Rust code and publishing them to CRAN. A basic understanding of Rust is assumed. If you are new to Rust, start with the Rust Basics section.

Core Concepts

Type Mapping

Integrations

Publishing

FAQ

What’s not in this guide?

This guide is not a comprehensive introduction to Rust. Concepts are introduced only to explain extendr tools. To learn more about Rust, consult “The Book”.

This guide is also not a comprehensive guide to R package development. Better resources exist for that, notably R Packages (2e). We will point you to relevant external resources as needed.

Software requirements

This guide assumes the following versions of necessary software:

  • R: 4.2
  • Rust 1.65.0
  • extendr-api 0.8.1
  • rextendr 0.4.2.9000

Please see Get Started if you have not already installed this software.